Hi all!
I have a text file that i want to grab some text from.
The lines a want are located between two lines with known words in them. Example below.
.
.
line i dont want
line i dont want
name
line i want
line i want
end
line i dont want
line i dont want
.
.
I want to grab all lines between "name" and "end". I want the line containing "name" as well. Could anyone help me with some example code? Thanks in advance!
I have a text file that i want to grab some text from.
The lines a want are located between two lines with known words in them. Example below.
.
.
line i dont want
line i dont want
name
line i want
line i want
end
line i dont want
line i dont want
.
.
I want to grab all lines between "name" and "end". I want the line containing "name" as well. Could anyone help me with some example code? Thanks in advance!