www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/24/06:05:22

From: "Al Morgan" <muaddib AT proaxis DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Binary and Text Files
Date: Tue, 24 Aug 1999 01:33:05 -0700
Organization: Posted via Supernews, http://www.supernews.com
Lines: 15
Message-ID: <rs4m4ctu4u65@corp.supernews.com>
X-Complaints-To: newsabuse AT supernews DOT com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is probably a stupid question, but what's the difference between
opening a file in binary mode as opposed to text mode?

ifstream binary_file;
binary_file.open("info.dat", ios::binary);

as opposed to

ifstream text_file;
text_file.open("info.dat");        // text is the default.

Thanks in advance
    Al [muaddib AT proaxis DOT com]


- Raw text -


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