depends on the target OS. Something like this will do the job.
if you want full working code it will cost you............
Set pointer to start of file
while(not at end of file)
find line number
set right data array element
while(not end of line)
move filepointer until next digit
atoi (file pointer)
copy into data array
Post your attemp and someone will help if they can.
The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.