× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...


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

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.