Well I've changed it back to this, which is working fine:
If anybody has any suggestions on how to let the user define the files please let me know.Code:ifstream file("FTSE_from_1984_training.csv"); // File for TRAINING if(file.fail()) { cerr << "Input file 'training' problem!" << endl; return 1; } ifstream test_file("FTSE_from_1984_testing.csv"); // File for TESTING if(test_file.fail()) { cerr << "Input file 'testing' problem!" << endl; return 1; }