create a text file

per9000 per9000 at gmail.com
Wed May 31 04:37:36 EDT 2006


Ooops,

w must be 'w' - sorry for adding more confusion :-D

I would also like to add that this is a more realistic useage

appendix = '.txt' # or '.csv' or whatever

#  some code

c += 1
filetitle = 'result_' + zeropadding(c) + str(c)
myfile = open(filetitle+appendix,'w')

# etc

Hope that was a little better.
/P9K




More information about the Python-list mailing list