I start with a file that is 1k but end up with a file that is 64k even
though the data string (input and output) is less than 500 bytes.

My fixed length field is 64512. I have a varying field also defined as
64512 long max. I know that equates to the 64k I'm seeing, but I want to
only write the data into the varying field, and have it only occupy the
space required (ie 1k).

Are you using the write() API? or the fwrite() API? or the fputs() API? or how are you writing this data?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.