|
From: Tim Brown <tim.bronski@xxxxxxxxx>contents
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 03/12/2015 10:14 AM
Subject: Re: Shortening an IFS file
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I might have read your email too quickly. If you want to clear the
of a file before writing back to it then use the open option isuggested.
If you want to keep the contents up to a particular size then useftruncate.
On Mar 12, 2015 2:40 PM, "Tim Bronski" <tim.bronski@xxxxxxxxx> wrote:I'm
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.
backusing the The utility works great except that when I write the data
be. Ito the IFS, there is original data past where I want the new EOF to
newcan't for the life of me figure out how to shorten the file and set a
list--(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
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.