I am trying to write a program where I can read info from a data file into my program and write info to another data file using argc and argv functions.
this is what i have so far and am not sure it is correct.
main( int argc, char* argv )
char record ;
printf("Number of files to be printed: %i\n", argc -1);
for (i=1; i<argc; i++)
while (fgets(record,37,input) != NULL)
(ps my input file has about 30 characters in it on 4 seperate lines).
Any input from any of you guys would be much appreciated, as I dont think this code I wrote is completely correct.