Karim
03-11-2005, 05:53 PM
I can open a file when the filename is hard coded or if I ask the user and store the filename into a string. But I have no idea how to open a file when the filename is only specified at run-time on the command line. For instance:
myProg filename1
myProg filename2
etc.,
myProg needs to input the text from the various files for processing but I don't know how to get at the contents. This isn't redirection either which I would be fine with.
Any ideas?
myProg filename1
myProg filename2
etc.,
myProg needs to input the text from the various files for processing but I don't know how to get at the contents. This isn't redirection either which I would be fine with.
Any ideas?