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



Boy, it's been a while since I've used those handy functions on DOS :)
I don't know of direct equivalent on System i, but being that list is kind
of quiet today...
Closest fit is probably opendir(), readdir(), closedir().  You might also
need to use stat() or fstat() to get additional information on the files.
You can probably code up wrapper functions that would fully imitate DOS
functions, but I wouldn't do it unless you're porting an existing
application.

There is a simple example at the bottom of this link:
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/opendir.htm

Elvis

-----Original Message-----
Subject: [C400-L] _dos_findfirst and _dos_findnext analog on AS/400

I remember, there was a fine set of C functions on PC:
_dos_findfirst and _dos_findnext. Names slightly differ from compiler to
compiler.

With their help it was very easy to process set of files with names,
matching certain criteria.

Is there anything similar in ILE/C to process files, that reside in IFS
(QIBM)?

Stupid ideas come to mind, like sending directory listing to file....

Any advise will be highly appreciated,

Jevgeni Astanovski




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.