I need to replace a complete line in a text file.
The line than i need replace has this aspect:
Yes, it is a piece of code. I want replace this line with other line.
From other file i am obtaining a list of ip address, then i concatened these in a variable , example:
I do that because the ip address are incrementing frequently.
After that i build other variable like:
Therefore i would love be able to do something as:
but i am having problem get the line from the code in a variable. If i do:
it find the full line! that is very good but...when i want to put it in a variable like:
not work!
Then I tried with other option as:
or
in all cases the console say: syntax error
I need to know how i can replace a full line. I did think this would be easy!!! but No.
The good part of this is that I am learning a lot
Please Help!
Muchas Gracias