delorie.com/archives/browse.cgi | search |
Date: | Sat, 18 Nov 2000 21:12:33 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | Ilya Surdin <surdin AT aquanet DOT co DOT il> |
Message-Id: | <9003-Sat18Nov2000211232+0200-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <8v6ded$pbm$1@nnrp1.deja.com> (message from Ilya Surdin on Sat, |
18 Nov 2000 17:14:55 GMT) | |
Subject: | Re: Eof() |
References: | <8v6ded$pbm$1 AT nnrp1 DOT deja DOT com> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Ilya Surdin <surdin AT aquanet DOT co DOT il> > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 18 Nov 2000 17:14:55 GMT > > I'm sure that this question is being asked alot No, it isn't. > when using the io.h file funtions, how do I know whether I've > reached the eof? Please explain more. What functions from io.h did you have in mind, specifically? In general, when you try to read a file past its end, you get an error indication from the function which reads the file. You cannot know whether you are at the end of the file beforehand, unless you compare the file pointer with the file size, and assume that no other program is writing to the file at the same time.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |