User entering I/O File names at command line
I've finished coding my whole project except for this last part (thank goodness). In all the projects i've done in the past, the input and output file names are set by the programmer in the code itself. In this one the teacher writes "The user will be required to enter the input and output file names at the command line in order to run the program. Appropriate error messages should be displayed in the event that user failes do do so." The input and output files are both text files (don't think that matters but I want to give all the info needed for anyone who might be able to help me). Anyone have any clue on how to code this?