• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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!
0
pai
Asked:
pai
  • 3
  • 2
1 Solution
 
paiAuthor Commented:
Adjusted points from 50 to 100
0
 
rbrCommented:
For which OS. There are no ansi function which will do this. The POSIc function for these are

opendir, readdir, scandir, closedir, ...
0
 
paiAuthor Commented:
Sorry, I forgot to mention it is in Linux. Could you give an outlined example as how it works?
0
 
rbrCommented:
Send an email to rbr@tip-informatik.at
and I will send you an example.
0
 
paiAuthor Commented:
The answer is good. You should post it here.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now