shilpashetty27
Technical User
Hi all,
A little background on what I'm trying to do.
I've created a file with 5 lines, 3 numbers on each line. I intend to read only the second number of every line and then jump to the newline.
For eg: Line 1: 1 2 3
Line 2: 4 5 6
Line 3: 7 8 9
Line 4: 1 2 3
Line 5: 4 5 6
I've been able to read the second number of only the first line quite successfully but what I'm stuck on is getting to the newline.
I've seen fgetpos, fsetpos etc but none of them seem to do what I want.
Any help is appreciated.
Thanks in advance!
cheers,
Shilpa
A little background on what I'm trying to do.
I've created a file with 5 lines, 3 numbers on each line. I intend to read only the second number of every line and then jump to the newline.
For eg: Line 1: 1 2 3
Line 2: 4 5 6
Line 3: 7 8 9
Line 4: 1 2 3
Line 5: 4 5 6
I've been able to read the second number of only the first line quite successfully but what I'm stuck on is getting to the newline.
I've seen fgetpos, fsetpos etc but none of them seem to do what I want.
Any help is appreciated.
Thanks in advance!
cheers,
Shilpa