Input file from command line using '<' operator
Posted on 2003-10-28
I am currently working on a project which requires the program to get the input file from the command line using '<', not from a prompt within the program. I understand how to get the information out of the file using the std::cin command, but what I was wonder is how I could retrieve the actual filename of the input file that is entered.
How do I get the name of inputvar to use in my main function?