I have tryed a bunch of other ways of doing it from other forums. But none of them seem to work. Maybe i am just writing them wrong. I have a text file that I want python to replace the "0" with a "1" my text file looks like this
0
hello
more stuff
meh
i want it to be
1
hello
more stuff
meh
Thanks, this is probably really simple. If anyone can post a way to replace the 0 with a 1 or delete a whole line and then rewrite it. Either one works. Thanks I also want it to work if the 0 was on the third line or some other line. You would of course have to change what line it targets