🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Tilo Levante Thu, 14 Feb 1991 08:12
error message from istream
#477
Author: 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              *
*******************************************************************************
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads