Carel Fellinger: one more question

Steve Mak stevemak at softhome.net
Tue Feb 20 19:22:10 EST 2001


I need to output some data to an output file. I am using:

outp = open("output.txt","w")
outp.write(data)
outp.close()

my problem is i need to have some data on separate lines. right now
everything is saved as 1 long line of data. how do I specify a carriage
return to the output file?





More information about the Python-list mailing list