Hi,
I'm writing a class which has the function that can load a file, it's like this:
as you can see it only loads this specific file.Code:A::A(){} void A::loadFile() { ifstream fs; fs.open("file.txt"); //....other stuff...... }
Now how can I modify it so that it can load a file with the name specified from the command line.
Many thanks!!!