Hi everybody,
This is probably trivial, but I just can't see it.
In the followinf function:
/*-------------------------------------------------*/
File::loadFile(string inputFile)
/*-------------------------------------------------*/
{
ifstream myFile;
myFile.open(inputFile.c_str());
.....
}
I get a segmentation fault when invoking the open( fstream::open) function.
I verified that inputFile.c_str() is returning the right value, so...
Does someone has any hints about it?
Regards
Manuel
--
================================================== ======================
Manuel Diaz-Gomez | ATLAS Bldg. 32/SB-008 tel. +41 22 76 76304
CERN EP Division
CH-1211 Geneva 23
SWITZERLAND
================================================== ======================