Re: Any idea how i can format my output file with********************Start file*********************

Discussion in 'Python' started by Dave Angel, Feb 9, 2013.

  1. Dave Angel

    Dave Angel Guest

    On 02/09/2013 10:01 AM, Morten Engvoldsen wrote:
    > Hi Davea,
    > I am using Python 2.7.

    Sorry, I should have noticed the python version in the subject line, but
    didn't until this reply.

    How about print >> outfile, "Start the File".center(55, "*")
    after creating the file, and

    print >> outfile, "Start the File".center(55, "*")
    just before closing it ?

    Dave Angel, Feb 9, 2013
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page