G
Guest
Hi,
I have a file in which I want to insert a text in between say the a specific
line.
Basically, I want to read through the file and search for a particular line
or character and then once I find this line or character I am searching for I
want to Insert a new string in a new line below the Line I was searching for.
Any examples on how to acheive this?
Line #1
Line #2
Line #3
Line #4
Line #5
Line #6
Search for Line #3, when found Insert a new line below it to look like this.
Line #1
Line #2
Line #3
NEW LINE INSERTES!!!
Line #4
Line #5
Line #6
I have a file in which I want to insert a text in between say the a specific
line.
Basically, I want to read through the file and search for a particular line
or character and then once I find this line or character I am searching for I
want to Insert a new string in a new line below the Line I was searching for.
Any examples on how to acheive this?
Line #1
Line #2
Line #3
Line #4
Line #5
Line #6
Search for Line #3, when found Insert a new line below it to look like this.
Line #1
Line #2
Line #3
NEW LINE INSERTES!!!
Line #4
Line #5
Line #6