Start by writing a program that accepts parameters on the command line and prints them out.
Once that's working, check the parameters to see what they are and output messages for each so you know you are analyzing the parameters correctly.
Then open the file, read it, and display it.
Basically, do a piece at a time...
Reputation Points: 3278
Solved Threads: 894
Posting Sage
Offline 7,744 posts
since May 2006