Hi,
I just like to know, could I do this some way with UltraEdit ?
Say, I have 2 textfiles open :
1st textfile is the one that needs to be changed.
2nd textfile is the one that contains the lines that need to replace lines in the 1st textfile.
File 2 contains 18 lines which needs special insertion into textfile 1.
I would like to get this done :
Search for a specific line in file1, and automatically replace each found line with the next line from file 2.
So, textfile 2 contains these lines :
So I need some special find an replace function that replaces each found matching line with the next line from file 2.
So, search textfile 1 for replaceme.
Running some kind of script or function,
- the first occurence of replaceme is replace by First line to insert.
- the second occurence of replaceme is replace by Second line to insert.
- the third occurence of replaceme is replace by Third line to insert.
- the forth occurence of replaceme is replace by Forth line to insert.
- the fifth occurence of replaceme is replace by Fifth line to insert.
Is this, some way, possible please ?
I just like to know, could I do this some way with UltraEdit ?
Say, I have 2 textfiles open :
1st textfile is the one that needs to be changed.
2nd textfile is the one that contains the lines that need to replace lines in the 1st textfile.
File 2 contains 18 lines which needs special insertion into textfile 1.
I would like to get this done :
Search for a specific line in file1, and automatically replace each found line with the next line from file 2.
So, textfile 2 contains these lines :
Code: Select all
First line to insert.
Second line to insert.
Third line to insert.
Fourth line to insert.
Fifth line to insert.
etc....
So, search textfile 1 for replaceme.
Running some kind of script or function,
- the first occurence of replaceme is replace by First line to insert.
- the second occurence of replaceme is replace by Second line to insert.
- the third occurence of replaceme is replace by Third line to insert.
- the forth occurence of replaceme is replace by Forth line to insert.
- the fifth occurence of replaceme is replace by Fifth line to insert.
Is this, some way, possible please ?