|
If you're using open() then you should have O_TRUNC or'ed as a flag.
On 3/12/2015 2:32 PM, MichaelQuigley@xxxxxxxxxx wrote:
I'm writing a utility to remove some filler data from an IFS file. I'm
using the The utility works great except that when I write the data back
to the IFS, there is original data past where I want the new EOF to be. I
can't for the life of me figure out how to shorten the file and set a new
(shorter) end of file.
Any help would be greatly appreciated.
Thanks,
Michael Quigley
Computer Services
The Way International
www.TheWay.org
--
Need secure FTP? Download your native sFTP solution here:
www.arpeggiosoftware.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.