I want read a txt file that has up to 10 lines. The file is formatted like this on all lines:
1 1 8 2 2 3 3 1 15 4 2 7
I\'m trying to write a f
you need to use checks for your input scans. you might potentially run into errors or EOF.
if(line < 1) //check for invalid line number { printf("Invalid line number..aborting\n"); exit(1); //aborting is optional } for(int i = 0;i