tilo@nmr.lpc.ethz.ch (Tilo Levante) (02/14/91)
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 *
*******************************************************************************