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



Thanks for the reply Joe. I did search on RTFREADR. The only source I
was able to find was a generic version for the Windows world.

Would you mind sharing your source, the compile command used to build
it
and any implementation notes that go along with it?

Out of curiosity I downloaded the rtfreadr archive from
http://www.fiction.net/blong/programs. I saved the members into a new
source file named RTFREADR in my current library (source length=144),
renaming members as follows:
rtfactn.c => RTFACTN (SEU Source type = C)
rtfdecl.h => RTFDECL_H
rtfreadr.c => RTFREADR (SEU Source type = C)
rtftype.h => RTFTYPE_H

The two includes in RTFACTN and RTFREADR were changed to read:
#include "rtftype_h.rtfreadr"
#include "rtfdecl_h.rtfreadr"

Compiled 2 sources using PDM option 15, with the following on the command
line:
SYSIFCOPT(*IFSIO)

CRTPGM RTFREADER MODULE(RTFREADR RTFACTN)

QSH CMD('/qsys.lib/mylibrary.lib/RTFREADER.PGM /home/mydir/testfile.rtf >
/home/mydir/testfile.txt')

Everything went as I had hoped. Whether the output is what you want or not,
is your call. (I don't currently have the facility to place a .rtf file on
the system on which I'm working, and I have none with which to test.)

The only thing that should be stopping you from accomplishing this is the
lack of a C compiler. Since you didn't mention that, I assume you're good
to go.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"We can't all be heroes, because somebody has to sit on the curb and clap as
they go by."
-- Will Rogers




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.