From 46e00cd75ab4835645914bf55d206489eb2166db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 16 Apr 2004 16:37:17 +0000 Subject: [PATCH] make users aware of wxInputStream::Eof limitations git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/inputstr.tex | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/latex/wx/inputstr.tex b/docs/latex/wx/inputstr.tex index 05f45a1884..eb2c5f2249 100644 --- a/docs/latex/wx/inputstr.tex +++ b/docs/latex/wx/inputstr.tex @@ -49,8 +49,11 @@ Returns true if the end of stream has been reached. \wxheading{Note} -This cannot be really implemented for all streams and CanRead() is more -reliable than Eof(). +For some streams Eof() will not return true until an +attempt has been made to read past the end of the stream. +\helpref{LastRead()}{wxinputstreamlastread} +should be called after each read to check that +a non-zero number of bytes have been read. \membersection{wxInputStream::LastRead}\label{wxinputstreamlastread}