How to replace string in a line in a file without deleting file?
Posted: 21 Dec 2018, 02:41
Hello,
I want to replace a string in a line in a text file. How do I do this?
For example, replace 01 in test.txt with 03.
Thanks.
test.txt
To
I want to replace a string in a line in a text file. How do I do this?
For example, replace 01 in test.txt with 03.
Thanks.
test.txt
Code: Select all
a = 01
b = 02
Code: Select all
a = 03
b = 02