delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | rd5718 AT irix DOT bris DOT ac DOT uk (Rich Dawe) |
Subject: | Re: PLEASE HELP: need file-read routine in DJGPP |
X-Nntp-Posting-Host: | irix.bris.ac.uk |
Message-ID: | <F3AFwE.Mqr@fsa.bris.ac.uk> |
Lines: | 15 |
Sender: | usenet AT fsa DOT bris DOT ac DOT uk (Usenet) |
Organization: | University of Bristol, England |
X-Newsreader: | TIN [UNIX 1.3 950824BETA PL0] |
References: | <01be1d27$5137e420$28ab9bc1 AT default> |
Date: | Tue, 1 Dec 1998 13:24:14 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Spike (spike AT S-DirektNET DOT de) wrote: : I wrote such a routine in C++ some time ago, but DJGPP doesn't understand : eof(handle). It only accepts feof(handle) but that's for binary-files!!! You can get it to work with text files by using setmode() to set that file to text mode. I can't remember the syntax, but it's documented in the libc info file section. HTH -- ============================================================================== Rich Dawe - 4th-year MSci Physicist @ Bristol University, UK richdawe AT bigfoot DOT com, http://www.bigfoot.com/~richdawe/ ==============================================================================
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |