Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

Dave Angel davea at davea.name
Sat Feb 9 18:13:43 CET 2013


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 ?

-- 
DaveA



More information about the Python-list mailing list