how to read all the subdirectories in a given destination which contain Master File in it
<p>I am having a problem .</p>

<p>My Problem is to read all the subdirectories in a given destination which contain Master file . </p>

<p>I can read subdirectories but i am creating a project which only read given directory which should  contain Master file in the directory .</p>

<p>In the given directory a file called Master file should be there.</p>

<p>I want to write the code like if the given directory doesnot contain any Master file in it it should Jump to another Directory.</p>

<p>My source Directory is @"C:\test.</p>

<p>In @"C:\test" there are many folders and subfolders .</p>

<p>the test directory contains "C:\test\test1\test2\test3 . In this path test3 folder contains Master file test1 and test2 doesn't .</p>

<p>I want to write this code something like this,</p>

<pre><code>            MLMReader Reader = new MLMReader();
            Reader.OpenDirectory(@"C:\test");
            if (!File.Exists(test + "\\Master"))
            {
              //i want to loop the "C"\\" and if test1 does not contain 
              // Master File then jump to another directory test2, if 
              //test2 directory contain Master File then the work should
              // continue after finishing go to test3                
            }
</code></pre>

<p>Is there any way to do .
Any suggestions for my problem.</p>
