Index: Doc/lib/libstdtypes.tex =================================================================== --- Doc/lib/libstdtypes.tex (revision 42047) +++ Doc/lib/libstdtypes.tex (working copy) @@ -625,7 +625,7 @@ \begin{methoddesc}[string]{find}{sub\optional{, start\optional{, end}}} Return the lowest index in the string where substring \var{sub} is found, such that \var{sub} is contained in the range [\var{start}, -\var{end}). Optional arguments \var{start} and \var{end} are +\var{end}]. Optional arguments \var{start} and \var{end} are interpreted as in slice notation. Return \code{-1} if \var{sub} is not found. \end{methoddesc} @@ -1598,6 +1598,11 @@ \begin{methoddesc}[file]{tell}{} Return the file's current position, like \code{stdio}'s \cfunction{ftell()}. + + Please note that \method{tell()} can return illegal values (after an + \cfunction{fgets()}) on Windows when reading files with + \UNIX{}-style line-endings. Use \code{'rb'}-mode to circumvent this + problem. \end{methoddesc} \begin{methoddesc}[file]{truncate}{\optional{size}}