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...
If I have a file in this format:
Actually this is a long file, I just want to get some data from it.
...........
*
*******************
* Class 1
******************
Name No
John 1
Mary 2
...
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.