delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/14/02:28:05

Date: Sat, 14 Feb 1998 01:24:29 -0600 (CST)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: djgpp <djgpp AT delorie DOT com>
Subject: Fstream question
Message-ID: <Pine.GSO.3.96.980214012058.23809A-100000@oscar.eecs.uic.edu>
MIME-Version: 1.0

Does anyone know how to check whether an opening of a file using fstream
was succesfull or not.
ex.

fstream file;
file.open("temp.txt", ios::out);
how do i test whether the open was successful.

Please reply by e-mail to aderen1 AT icarus DOT uic DOT edu (the server I'm using now
will be down for the next 2 days).

Thanks a lot. I know this is off the topic, but I use DJGPP and I thought
someone might know this.


                        ,,,
                       (0 0)
   +-------------oOO----(_)-------------------+
   |                Andrew Deren              |  
   |             aderen AT eecs DOT uic DOT edu          |
   | www.eecs.uic.edu/~aderen/ader/main.html  |
   +-------------------------oOO--------------+
                       || ||
                      ooO Ooo
 


- Raw text -


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