hockeychick00014
2008-01-22 22:50:44 UTC
#include
#include
#include
int main(int argc, char* argv[]) {
char c;
int argIndex;
(integer declarations here);
FILE* infile = stdin;
infile = fopen("infile", "r");
The program is supposed to take the file name from the standard input, open it, and run it through the loop, but I keep hitting a segmentation fault before it even hits the loop. Anybody know what I'm messing up? Thanks so much!