How would a C program read a list of files entered by the user?
How would a C program read a list of files entered by the user?
Use fgets() to take in the string (the file names), and check them for good input, then put them into a char array with 2 dimensions, aka an array of strings.
If the list was long, it would be a char array of pointers to strings, to save memory.