Xref: utzoo gnu.g++.help:499 comp.lang.c++:11832 Path: 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 The following program print TWO error messages: #include 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 * *******************************************************************************