Hi All,
I'm trying to process a text file. My file has a line format like the following:
'some text' bnm 'some numbers'
This line format repeats itself until the end of the text. The thing I need is 'some numbers'.
What I want to do is:
- scan every line for bnm
- when I find bnm, I want to read 'some numbers' after the bnm and write them to another file in the same order.
- this will go on like this until the end of the file.
I tried really hard, but I couldn't do it. I need some advice about which i/o function to use, some kind of algorithm perhaps. Any idea?