jimcath
2004-09-30 21:12:54 UTC
Is there a special place I have to put a .dat file in order for it to
be read by a C++ program in Xcode? or is there an environment setting
I need to change to find the place I put the .dat file? I tried all
sorts of paths and nothing worked (yet). The file opens in TextEdit
so I know its a vilid text file.
This is the code that is supposed to open the file oct.dat
------------------------------------------------
void Profile::readFile(char *name) {
int a;
ifstream inProfileFile(name, ios::in); //open curve data file
if (!inProfileFile){
cerr << "File could not be opened - PROFILE" << endl;
exit(1);
}
------------------------------------------------
and I always draw the error. The debugger tells me that name
is oct.dat which is the correct file Any ideas?
be read by a C++ program in Xcode? or is there an environment setting
I need to change to find the place I put the .dat file? I tried all
sorts of paths and nothing worked (yet). The file opens in TextEdit
so I know its a vilid text file.
This is the code that is supposed to open the file oct.dat
------------------------------------------------
void Profile::readFile(char *name) {
int a;
ifstream inProfileFile(name, ios::in); //open curve data file
if (!inProfileFile){
cerr << "File could not be opened - PROFILE" << endl;
exit(1);
}
------------------------------------------------
and I always draw the error. The debugger tells me that name
is oct.dat which is the correct file Any ideas?