How is it possible to change "TheFile.txt" to a string instead.
From this:
I am trying to instead declare "TheFile.txt" like this but this doesn´t work. What could be wrong here.Code:Ifstream Onefile ("TheFile.txt");
Code:std::string File; File = "TheFile.txt" Ifstream Onefile (File);