Newsgroups: comp.os.msdos.djgpp From: manni DOT heumann AT gmx DOT de (Manni Heumann) Subject: Re: seekg() problem References: <8mu104$bal$1 AT nnrp1 DOT deja DOT com> X-Newsreader: News Xpress 2.01 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Thu, 10 Aug 2000 11:04:00 GMT NNTP-Posting-Host: dhcp33-228.uni-bielefeld.de Message-ID: <39928c22$1_1@news.uni-bielefeld.de> X-Trace: 10 Aug 2000 13:04:02 +0200, dhcp33-228.uni-bielefeld.de Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Marko Lavikainen wrote: >I have this very annoying problem with seekg(). >It seems that seekg cannot access values above 32768. Am i correct? >I tried command 'inputFile.seekg(40000)' and program crashed. > >What to do? > seekg() should certainly work on files larger than 32k, did it a couple of times and never had any trouble. Are you sure your program crashed in seekg()? I'm having a hard time believing that. Certainly seekg() can fail for various reasons, but crash? -- Manni "Life would be much easier if I had the source code."