Hi,
I am trying to compile my unix c++ code in windows, but am having file path trouble. My unix code is:
Code:
cout << "Enter output sub-folder name: ";
cin >> fn;
subFolder = fn;
fnfull = "./" + fn + "./scores.data";
fout.open(fnfull.c_str(), ofstream::out);
This does not work properly when compiled in windows. I also tried:
Code:
cout << "Enter output sub-folder name: ";
cin >> fn;
subFolder = fn;
fnfull = fn + "\\scores.data";
fout.open(fnfull.c_str(), ofstream::out);
With no sucess.
Any help would be appreciated.
cheers.