🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #477

error message from istream

#477
From: Tilo Levante
Date: Thu, 14 Feb 1991 08:12
27 lines
1442 bytes
The following program print TWO error messages:

#include <stream.h>

main()
{
  istream is ("test.test",io_readonly,a_useonly);
  if (is.fail)
        cout << "Open failed\n";
}

error in File test.test: No such file or directory
Open failed

(compiled with g++ version 1.39.0 and lib-g++ version 1.37.2)

Is there a way to supress the error message from class istream?

Tilo

*******************************************************************************
* Tilo Levante                            Domain: tilo@nmr.lpc.ethz.ch        *
* Institut fuer physikalische Chemie      UUCP:   ...!mcsun!chx400!ethz!tilo  *
* Eidgenoessische Technische Hochschule                                       *   
* ETH-Zentrum                             Phone:  +41/1/256-4372              *
* CH-8092 Zuerich                         Fax:    +41/1/252-3402              *
*******************************************************************************
Technical Details
Message-ID: <9102140812.AA16819@purcell.ethz.ch>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: tilo@nmr.lpc.ethz.ch (Tilo Levante)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: error message from istream
Message-ID: <9102140812.AA16819@purcell.ethz.ch>
Date: 14 Feb 91 08:12:34 GMT
Sender: daemon@tut.cis.ohio-state.edu
Followup-To: gnu.g++.help
Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu
Lines: 27