Hello, i'm working on a program for my thesis, this program is supposed to go trhough a bunch of file and retrieve two sets of numbers each time it finds these two words: Isp and Ivac.
the outlook of the files which contain the datas is like this
.
.(a bunch of other stuff)
.
Isp, M/SEC 34390 234356
Ivac, M/SEC 34532 284654
,
,
,
Isp, M/SEC 34343 234246
Ivac, M/SEC 32432 284574
I'm having problem with the searching for the lines and then retrivial of the datas. What I wrote is this
the problem is that instead of saving/printing me just the single line it saves/prints me the whole file.Besides even if I were able to retrieve the single line i'm interested I wouldn't know hot to "tell" to skip the words and get only the numbers. I appreciate you help