Hi,

I'm writing a class which has the function that can load a file, it's like this:

Code:
A::A(){}
void A::loadFile()
{
    ifstream fs;
    fs.open("file.txt");
    //....other stuff......
}
as you can see it only loads this specific file.
Now how can I modify it so that it can load a file with the name specified from the command line.

Many thanks!!!