in desperate need of help
I am to write a program that reads in a command line entry of multiple file names. An example of the prompt would be
"Enter the names of the files to be used: "
the user input would be:
file1.a file2.a file3.a file4.a .... and so on, all on one line, separated by a space.
The problem i am having is that i know what to do to read one file only, not multiple files. i think the code is
int i;
FILE *fp
for(i=1; i < argc[i]; i++)
but the trouble i am having is, where would i place the prompt, how would i scan in all the files from the one line, and so on
If anybody could help, it would be GREEEEEEEEATLY appreciated. Thank you in advance