This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
class iostream
- To: bug-gcc at gnu dot org
- Subject: class iostream
- From: pedro <pedro at jigen dot iet dot unipi dot it>
- Date: Wed, 01 Mar 2000 11:11:03 +0100
version: egcs-2.91.66
system type: linux
options: -c -fexceptions -I/usr/lib/g++ -o3
I wrote code with the use of exception handling and i found that the
iostream class doesn't work. Here a code example
char buff[200];
ifstream input;
input.open("file.ini",ios::nocreate);
input.getline(buff);
The variable buff is now 0 becouse the getline doesn't work.
If i leave the same code and the same files but i declare
fstream input;
input.open("file.ini",ios::nocreate||io::in);
the getline works properly
Thank for the existance of GNU
Pedroni Davide