What I want to achieve is to open an input file & open an output file, parse the input file until i match a piece of text then extract the text to the output file. The input file will look like this:
i want to match any occurance of name and take that line along with the following line out of the input file and write it to the ouput file.
Can anyone suggest the best way to achieve this. I can produce the code that will open both files, match the string name and write that line out, but i need to be able to take the next line too.
Thanks.