|
Yes, the read would grab the next block of 1024 or however many bytes are left til it reaches the end. Just like an DB2 read reads the next record. This is the preferred way for reading binary files, in a big chunk at a time, usually the record size. Usually doesn't work too well for text files though. Regards, Jim Langston -----Original Message----- From: dmosley@dancik.com [mailto:dmosley@dancik.com] Would you have this in a Do-Loop, to read each 1024 blocks of data? Say something like... C DOU Whatever C EVAL CHARSREAD = read(fp: %addr(input): 1024) C IF CHARSREAD <= 0 C LEAVE C ENDIF C ENDDO Would this be accurate? Will the read() know to pull the next 1024 each time?
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.