From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: PLEASE HELP: need file-read routine in DJGPP Date: Tue, 01 Dec 1998 14:08:02 -0500 Content-Transfer-Encoding: 7bit References: <01be1d27$5137e420$28ab9bc1 AT default> X-Posted-Path-Was: not-for-mail X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: 1 Dec 1998 19:08:54 GMT X-ELN-Insert-Date: Tue Dec 1 12:05:01 1998 Organization: Nocturnal Aviation Lines: 18 Mime-Version: 1.0 NNTP-Posting-Host: 1cust152.tnt12.nyc3.da.uu.net Message-ID: <36643E92.55F30AF1@earthlink.net> X-Mailer: Mozilla 4.5 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Spike wrote: > > Hi!! > > Please help me: > I need a function, that reads a number from a text-file. > But it also should be able to identify if the number is negativ!! > 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!!! > > PLEASE help me!!! feof will work just fine for you. It is defined over input streams whether opened as text or binary. -- Martin Ambuhl (mambuhl AT earthlink DOT net) Note: mambuhl AT tiac DOT net will soon be inactive