readling newlines

Alessandro Crugnola *sephiroth* alessandro at sephiroth.it
Sat Jan 10 09:25:44 EST 2004


Hi, I'm trying to detect the newlines method of a file opened.
I'm using the 'U' mode as parameter when opening a file, but for every file opened the result is always "\r\n", even if the file has
been saved with the "\n" newline method.
Is there i'm missing?

I'm on Windows with python 2.3.3





More information about the Python-list mailing list