Hello Python Experts
I have a text file containing a code (written for a software)
I need to write a code in Python, to first, read the text file, search for a string, change that string with something else and save the file.
Let's say that the file name is test.txt which is in D:\ry directory, and I need to change E=100 to E=200 in this file.
I should mention that I am a beginner in python.
Thansk
I have a text file containing a code (written for a software)
I need to write a code in Python, to first, read the text file, search for a string, change that string with something else and save the file.
Let's say that the file name is test.txt which is in D:\ry directory, and I need to change E=100 to E=200 in this file.
I should mention that I am a beginner in python.
Thansk
Comment