Hi,
the example provided by Vishnu is quite close to what I want but it
still required me to write all the data back to the file.
Is there any way where I can just write a particular line?
Regards,
Kah
--
http://mail.python.org/mailman/listinfo/python-list
How do I change a line in a file??
For example I have the follwing text in my file:
line1
line2
line3
line4
How do I replace 'line2' with 'newline'. Since the write operation in
python will overwrite everything.
Regards,
Kah
--
http://mail.python.org/mailman/listinfo/python-list