pai
asked on
Read a file following $PATH
How do I read a file following $PATH if it is not in current directory. I mean, are there methods to easily do that instead of dissecting $PATH string and try to find the file directory by directory? Thanks!
For which OS. There are no ansi function which will do this. The POSIc function for these are
opendir, readdir, scandir, closedir, ...
opendir, readdir, scandir, closedir, ...
ASKER
Sorry, I forgot to mention it is in Linux. Could you give an outlined example as how it works?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The answer is good. You should post it here.
ASKER