Writing to a certain line?

Tommy B tommy04 at gmail.com
Tue Jun 6 02:41:12 EDT 2006


I was wondering if there was a way to take a txt file and, while
keeping most of it, replace only one line. See, I'd have a file like:

Tommy 555
Bob 62
Joe 529

And I'd want to set it to be:

Tommy 555
Bob 66
Joe 529

Is there any easy way to do this?




More information about the Python-list mailing list