[Tutor] Reading from a file
robert frank brenart
Fri, 17 Aug 2001 13:55:41 -0500 (CDT)
And we have a winner... thanks a bunch.
> The \0 part means that that character is being displayed in its octal
> format. 012 is '\n' or NL. What OS created the files and what OS
> are you reading them on? You could strip that character off the
> string before you split it.
> for line in file.xreadlines() :
> line = line.strip()
> print line.split( "," )
> Tutor maillist - Tutor@python.org