[Tutor] Cant write new line at end of file append

dave selby dave6502 at googlemail.com
Fri Dec 21 18:03:19 CET 2007


Hi all,

I need to write a newline at the end of a string I am appending to a
file. I tried ...

journal.write('%s#%s\n' % (jpeg[:-4], self.snap_init[feed]))

The text is all there but no new line at the end .... any idea what I
am doing wrong ? ... thought \n would do it.

Cheers

Dave


-- 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


More information about the Tutor mailing list