I'm attempting to write some code that uses command line arguements to read x amount of character strings (words) from a file.

I am unaware of how to open the file from the command line or whether I'd need another function specifically for opening the file and checking to make sure it's data is valid (strings between 1 and 15, file not able to be opened, or not enough data in the file.

I know you use

int main (int argc, char *argv[])

How would I pass those to either an openFiles( ) function or just do all the checking in main?

<<split from dead thread>>