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



Cool! I just took a look at some stuff in QSYSINC, to see if I understand anything here! opendir is in the DIRENT.H member - so this would be from the C/C++ library functions, as I understand it.

There's other stuff in an IFS.H member - things like fopen, fread - there isn't anything there about directories that quick perusal showed me.

And now I feel like I'm adding more murk to the air here!! Time to get back to my RPGish tasks!

Regards
Vern

On 9/3/2021 9:14 AM, Brad Stone wrote:
Here's a working example of reading through an IFS directory:

Reading Through an IFS Directory With RPG....
https://www.fieldexit.com/forum/display?threadid=446

On Fri, Sep 3, 2021 at 8:29 AM Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
wrote:

Interesting - so I just looked - fopen is in the C/C++ set, right? How
do C/C++ developers work with directories? There wasn't anything obvious
in stdio.h.

Just curious on a Friday morning!

Regards
Vern

On 9/2/2021 5:00 PM, Jon Paris wrote:
I know there are two sets at the file level Vern but I've never seen
anything other than opendir etc. for directories.

Jon Paris

On Sep 2, 2021, at 4:20 PM, Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
wrote:
There are actually 2 sets of APIs for working with the IFS - the C++
set and the other - maybe they are in what are called UNIX IFS APIs?
So many choices!

Vern

On 9/2/2021 1:06 PM, Justin Taylor wrote:
I absolutely agree, but I assumed those were the APIs that are being
avoided.


date: Thu, 2 Sep 2021 11:28:06 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: Re: How to provide an RPG ILE program with a list of files in
a QNTC directory

You don't mention trying the C directory functions opendir, readir,
etc.
That to me would be far the easiest approach.


Jon Paris


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.