please delete this .. i put it in the wrong forum. sorry
hi,
Im trying to read a large number from a file, into a variable and then print it.
This is what i have tried, but i am getting a seg. fault. (ive attached the file as well)
Code:long current; FILE *inFile; if (!(inFile = fopen("tests/100.tst","r"))) fprintf(stderr, "tests/100.tst cannot be opened!\n"); else { fscanf(inFile, "%d", ¤t); printf ("\n%d\n", current); }