[Tutor] end of file symbol?
Bill Mill
bill.mill at gmail.com
Mon Nov 1 22:53:37 CET 2004
Ummm, yeah, so I meant "\r\n" on windows, "\n" on *nix, and "\r" on
Mac pre-OS X. All of my "/" should be "\".
Thanks to the person who pointed that out.
Peace
Bill Mill
bill.mill at gmail.com
On Mon, 1 Nov 2004 16:29:19 -0500, Bill Mill <bill.mill at gmail.com> wrote:
> 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