Name: Anonymous 2012-05-26 3:39
Neeeed 'C' Help.
I need to read in input from the command line argument and open the text file ( 2nd arguement; nums1.txt in this case)
ie: ./shitprogram nums1.txt
and so what would i be inputting here:
fopen("????","r");
I know that argv[1] = "nums1.txt" but how would i use this as a variable in fopen() ?
I need to read in input from the command line argument and open the text file ( 2nd arguement; nums1.txt in this case)
ie: ./shitprogram nums1.txt
and so what would i be inputting here:
fopen("????","r");
I know that argv[1] = "nums1.txt" but how would i use this as a variable in fopen() ?