[Tutor] end of file symbol?

Bill Mill bill.mill at gmail.com
Mon Nov 1 22:29:19 CET 2004


Jeff,

Windows-style text file lines end in "/r/n". Unix-style text file
lines end in "/n". I believe that Mac-style text file lines end in
"/r" . You can use the variable os.linesep to see what the current
platform's line separator is.

There is no end of file character.

Peace
Bill Mill

On Mon, 1 Nov 2004 13:14:31 -0800 (PST), Jeff Peery <jeffpeery at yahoo.com> wrote:
> 
> is there an end of file symbol? or an end of line symbol? usually I look for
> '\n' when I am filtering though text to find the end of a line, but I am
> wondering if there is a better end of line character. thanks. 
>   
> Jeff 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 
>


More information about the Tutor mailing list