www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/05/19:34:05

From: Nathan Smith <stryyker16 AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: GCC 3 and binary files
Date: Tue, 06 Nov 2001 11:18:21 +1100
Lines: 7
Message-ID: <muaeutgsa50mhui7eohkqucrsqdmre15ar@4ax.com>
NNTP-Posting-Host: 072.olv0101.olv.iprimus.net.au (210.50.12.72)
Mime-Version: 1.0
X-Trace: fu-berlin.de 1005005965 35016004 210.50.12.72 (16 [86525])
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

GCC 2 would work with:
int mode_in=(ios::in | ios::binary | ios::nocreate);
fstream filein(filename,mode_in);

it would work, now it no longer works. ios::nocreate doesn't seem to
exist and the mode_in element of fstream don't seem to be valid
either. Any docs on how to do all this with GCC 3?

- Raw text -


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