|
----- Message from John Yeung <gallium.arsenide@xxxxxxxxx> on Wed, 3blank
Jun 2015 15:22:14 -0400 -----
To:
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject:
Re: Line-ending for IFS test stream file
On Wed, Jun 3, 2015 at 2:41 PM, <MichaelQuigley@xxxxxxxxxx> wrote:
The PC process which later uses the data doesn't interpret these as
fields.
Generally speaking, I find processing stream files on the PC much
easier than processing them on the i, so if I control both ends, I do
the "simplest possible thing" on the i, and delegate the rest to the
PC. But that's neither here nor there.
I call the write API using my revised data. Then I have to use
the ftruncate() API to shorten the file to its new length.
Well, the point of ftruncate() is to set the new size, so could it be
that you've specified a size that is one byte too small?
John Y.
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.