www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/07/21:17:43

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1403
Path: news-dnh.mv.net!mv!news.sprintlink.net!tank.news.pipex.net!pipex!oleane!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.belwue.de!green.t-informatik.ba-stuttgart.de!jscharrl
From: jscharrl AT ba-stuttgart DOT de (Jochen Scharrlach)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to read a file binary
Date: 7 Aug 1995 13:17:55 GMT
Organization: Berufsakademie Stuttgart
Lines: 16
References: <DCnA3M DOT 2LI AT jade DOT mv DOT net>
Reply-To: jscharrl AT ba-stuttgart DOT de
Nntp-Posting-Host: green.t-informatik.ba-stuttgart.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Torsten Schweigert (qiqd3 AT hobbit DOT chemie DOT uni-halle DOT de) wrote:
>    ofstream WriteFile("test.out",ios::bin);
>    ifstream ReadFile("test.in",ios::bin);

I had the same trouble - try it with:
    ofstream WriteFile("test.out",ios::bin | ios::out);
    ifstream ReadFile("test.in",ios::bin | ios::in);

Bye,
Jochen

--
                      ------------------------------------
                      EMail:   jscharrl AT ba-stuttgart DOT de
                         or:   acorn1 AT ftp DOT uni-stuttgart DOT de
                      ------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019