[Tutor] length of a string? Advice saught

Kent Johnson kent37 at tds.net
Thu Jan 28 14:36:12 CET 2010


On Wed, Jan 27, 2010 at 6:57 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> read() functions usually have an optional buffersize parameter
> set to a "reasonable" size. If you try to read more than that it
> will be truncated. This is explained in the read() documentation
> for files.

?? files have a buffer size that sets how much is read from the disk
at once; I don't think it affects how much is read by file.read(). The
docs for that say,
"If the size argument is negative or omitted, read all data until EOF
is reached."

Kent


More information about the Tutor mailing list