"\n" in ASCII-file

Martin P martin_p at despammed.com
Fri Jul 18 06:46:15 EDT 2003


Hello,

for a short exercise-program I have to read the lines in an ASCII-file.

But every line has a new-line-feed ("\n") at the end of the line. (The
ASCII-file was made with Windows Notepad).
Is this only because I used Windows (and Notepad)?

And... is there any special method to read lines from a file without "\n"?

Bye,
Martin






More information about the Python-list mailing list