i think it doesnt work because once u read
Mary at that line , after u use "READ" again, it will automatically change to the next line.
can anybody help me to solve this? thx
how to read the data on the same line
e.g.
if i want to read the number after Mary once I have found Mary in the data file. Because it will read the next line after it found Mary if I want to read the number after Mary.
open(13,FILE='ff.dat')
1010 continue...
one more question:
how to read the data on the same line
e.g.
if i want to read the number after Mary once I have found Mary in the data file.
Mary 100
John 200
Mary 300
Oic, may be I post the complete one.
DATA File:
Here is the inforamtion of Class 1
(blank line)
(blank line)
**********
*Class 1
(blank line)
John 1 100
(blank line)
(blank line)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.