Hi
i was wondering how you would go about reading files passed in the command line. i don't know how many files there are. also is it possible to read in a string first and then a series of integers.
thanks for any help
Morgan
Printable View
Hi
i was wondering how you would go about reading files passed in the command line. i don't know how many files there are. also is it possible to read in a string first and then a series of integers.
thanks for any help
Morgan
Well, if you doargc is the number of arguments passed (0 is the program name). You could use that to see how many files were passed.Code:int main(int argc, char* argv[])