Directory Search

J

james

I have my solution files is in a directory structure say

C:\Projects\MyProjeject\myproject.sln

In the solution I need to find a file which is in a directory out side
my MyProject directory
So I need to iterate up the Directory tree starting from MyProject
directory(but excluding that).

I need a efficient code that does the job using recursion or whatever
logic thought of.
 
J

Jeff Johnson

I have my solution files is in a directory structure say

C:\Projects\MyProjeject\myproject.sln

In the solution I need to find a file which is in a directory out side
my MyProject directory
So I need to iterate up the Directory tree starting from MyProject
directory(but excluding that).

I need a efficient code that does the job using recursion or whatever
logic thought of.

When you say you "need to file a file," do you mean you need the IDE to find
a file and refer to it at DESIGN time or do you mean your PROGRAM needs to
find a file at RUN time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top