How do you get files with extension from a folder in Ada95?

I am trying to create a function that will search all DLLs in a specified folder, plugins.

All my web searches ( Ada Directories ) work fine under Ada 2005, but I need a feature that will work for Ada 95. As far as I know, Ada 95 does not have the Ada.Directories extension.

How do I go through the filesystem to find DLLs in Ada 95? Are there any good starting points I might have missed?

+3


source to share


1 answer


There is (as you noticed) a solution to your problem in the standard Ada 95 libraries.

If your program is for GNAT only, you can use GNAT.Directory_Operations

.



If your program is only for Unix systems and not just GNAT, you can import the appropriate C functions.

+6


source







All Articles