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



I've to read a IFS file that has a ccsid of 1252.

Each line is crlf delimited and contains text words
with some control characters (that have hex value <
20)

(Control character are the blank spaces that should be
inserted between words.)

For example an ascii value of
0109524F5345 that is x'0109' + ROSE

In this line the word ROSE should be printed at column
9.

I've tried to get it with fopen (mode = "r") + fgets
but it translates SOME control characters too.

fgets returns:
0105D9D6E2C5 that is x'0105' + ROSE

I've also tried with mode = "rb" but fgets retrieves
more that one line at a time.

What's another way ?

Thanks.
Giuseppe.



___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.