I have a piece of code that currently only reads in one line of data from a file :
gcc myfile.c<data.dat
data.dat contains:
2 8 1101100
I'm using the scanf function to read in these values.
I want to be able to read in more than one line of the data file; I know I need to construct some sort of loop to read it but I'm not sure how.
Would it be a while(------ != EOF) ??
Please help