I opened a file using open()
in python, how would I find and replace a line using a string in that file.
Something like this:
snbsjasbnjsnsn : 200
open("file","a+")
line = file.find("snbsjasbnjsnsn").line
file.replace(line,"snbsjasbnjsnsn : 199")
The closest thing I found was this