Printing from a text file quirk
AWasilenko at gmail.com
AWasilenko at gmail.com
Thu Mar 22 23:59:52 EDT 2007
> Where can I see that? From the python language documentation here:
>
> http://docs.python.org/lib/lib.html
>
> you can look up readline() and see:
> ----------
> readline( [size])
> Read one entire line from the file. A trailing newline character is
> kept in the string
> ---------
>
> There is a function called strip() that will strip off all leading and
> trailing whitespace on a string, e.g. a newline.- Hide quoted text -
>
> - Show quoted text -
Thank you! Just what I needed :)
More information about the Python-list
mailing list