Hi there,
can anyone explain why the following script runs in ROOT 2.25/03, but not
3.01/06. Also I would appreciate if someone could explain an alternative method
for reading/writing files that is supported under 3.01.
{
#include <fstream.h>
ifstream data;
int valid=0;
data.open("output.dat", ios::in);
if(data.fail())
cout << "file not found"<<endl;
else
cout << "file loaded"<<endl;
}
The error I get is:
Error: class,struct,union or type ios not defined FILE:test.C LINE:5
Error: class,struct,union or type ios not defined FILE:test.C LINE:5
Error: No symbol ios::in in current scope FILE:test.C LINE:5
*** Interpreter error recovered ***
Thanks in advance
Chris
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET