"Tommy B" <[EMAIL PROTECTED]> writes: >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:
.. >Is there any easy way to do this? An easy way? If you know how many bytes in from the start of the file your desired changes are to be positioned, the utility of choice is the strange but wonderful "dd" for Unix, MSwindows, MSDOS, etc. That's its name: dd. Are you planning to execute a call to dd from within a python program? Of course, you are constrained to substituting N bytes with another N bytes, exactly. -- John Savage (my news address is not valid for email) -- http://mail.python.org/mailman/listinfo/python-list