From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with fstreams... Date: Mon, 25 Aug 1997 11:46:42 +0200 Organization: TU Chemnitz-Zwickau Lines: 16 Message-ID: <34015482.674D@Mathematik.TU-Chemnitz.DE> References: <5tps7b$rpo$1 AT news DOT sendit DOT nodak DOT edu> NNTP-Posting-Host: tantalus.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Adam W Lee wrote: > > I'm trying to write a program to read a file and write it to another file > in C++, but my program quits like halfway through the file with a read A short hint: Open your streams on DOS in binary mode!! Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************