Technologov added the comment: OK: try filewr.write("abc"+"\n"+"abc")
The file will be generated with 7 bytes in it (must be 8, because Windows has two-byte line-end). Without using "codecs" modules, everything works fine, and the file will have 8-bytes in it. (see 2nd example) Plus, the text will be corrupted when opened with Windows Notepad. -Technologov __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2131> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com