[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to truncate a file after partly overwriting it
From: |
Philip Nienhuis |
Subject: |
How to truncate a file after partly overwriting it |
Date: |
Sat, 8 Feb 2014 09:45:59 -0800 (PST) |
Hi,
I'd like to partly overwrite a text file starting from position X. However,
the new part to be written is shorter than the rest of the original file
contents from X to EOF. Consequently, after the newly written part, the
remainder of the old contents show up.
So, how can I close & truncate the file after the end of the new part?
Thanks,
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/How-to-truncate-a-file-after-partly-overwriting-it-tp4661758.html
Sent from the Octave - General mailing list archive at Nabble.com.
- How to truncate a file after partly overwriting it,
Philip Nienhuis <=