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




On 21/01/2006, at 11:15 AM, Dave Johnson wrote:

Does anyone have or can point me to, an example of reading an IFS file in RPG, that is not a text file? That is, lets say that I have a zip file stored in my ifs and i want to read it and write it out to another system via a socket, for example. I can find all kinds of examples of how to read text files (O_Text), but no one seems to want to explain, with an example that actually works that is, how to read a non-text file. I even checked Mr. Klement's website/tutorial and his example, to the best of my knowledge, is for simple text files only.

A cursory glance at the documentation for open() would show:

"If O_TEXTDATA is not specified, the data is processed as binary. The data is read from the file and written to the file without any conversion. The application is responsible for handling the data."

Other than whether this flag is specified or not there is very little difference between text processing and binary processing.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



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