Hi, I would like to seek some help in locating the file. Please help as it is urgent for project assignment.
string line;
ifstream dataList ("fileData\file.txt"); //this portion doesnt work
if (dataList.is_open()) {
while (!dataList.eof()) {
getline(dataList, line);
cout<<line<<endl;
}
}
Change it to ifstream dataList ("fileData/file.txt");
and see if it works (change the \ to /)