Carel Fellinger: one more question
Fredrik Lundh
fredrik at pythonware.com
Wed Feb 21 01:42:28 EST 2001
Steve Mak wrote:
> 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?
outp.write("\n")
Cheers /F
More information about the Python-list
mailing list