title: how to read subfolders and files contain in it
body: <p>i can read the folder files by using BETALIB reader, but its to big to read by giving the path one by in the folderbrowserdialog
  i can read folder but in that folder there are many folders and files i want to read the subfolders  .</p>
  
  <p>for eaxample :-
  E:\EXE\ttd\ttd1\ttd2\bsem\f1.dat
  E:\EXE\ttd\ttd1\ttd2\MCDEX\f1.dat</p>
  
  <p>i want to read the files by giving the path in the folderbrowserdialog
  EX:E:\EXE</p>
  
  <p>if i select the path E:\EXE it should read all the subfolders and files contain in it.</p>
  
  <p>can any one say me what i should change in the code</p>
  
  <pre><code>    private void btnSourceBOMCX_Click(object sender, EventArgs e)
      {
          fbdSourceBOMCX.Description = "Please select BOMCX source folder";
          fbdSourceBOMCX.RootFolder = Environment.SpecialFolder.Desktop;
          if ((fbdSourceBOMCX.ShowDialog() != DialogResult.Cancel) || (fbdSourceBOMCX.SelectedPath != ""))
          {
              sourceBOMCX = fbdSourceBOMCX.SelectedPath;
              if (File.Exists(sourceBOMCX + "\\Master"))
              {
                  txtSourceBOMCX.Text = fbdSourceBOMCX.SelectedPath;
                  Interaction.SaveSetting ((new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.Title  , "RealTime Converter", "sourceBOMCX", fbdSourceBOMCX.SelectedPath); 
              }
              else
              {
  
              }
  
  
          }
      }
  </code></pre>
  
  <p>private void bgManual_DoWork(object sender, DoWorkEventArgs e)
          {</p>
  
  <pre><code>        try
          {
              int DT = int.Parse(txtSelectedDate.Text);
              BETALIB.BLReader Reader = new BETALIB.BLReader();
              BETALIB.BLReader Reader1 = new BETALIB.BLReader();
              Reader.OpenDirectory(txtSourceBOBOMCX.Text);
              Reader.ReadMaster();
              string path = txtDestinationBOBOMCX.Text + "\\XYZ-" + txtSelectedDate.Text + ".txt";
              StreamWriter Strwriter = new StreamWriter(path);
  
              try
              {
                  while (Reader.iMaRecordsLeft &gt; 0)
                  {
                      string SecName = Reader.sMaSecName;
                      string Symbol = Reader.sMaSecSymbol;
                      Symbol = prefix + Symbol;
                      int abc = 0;
                      int xyz = lbselectedBOBOMCX.Items.Count - 1;
                      while (abc &lt;= xyz)
                      {
                          if (SecName == (string)lbselectedBOBOMCX.Items[abc])
                          {
  
                              Reader.OpenSecurityByName(Reader.sMaSecName);
                              Reader.SeekToEnd();
                              Reader.Seek(-1);
                              Reader.ReadDay();
                              float O = Reader.dSeOpen;
                              float H = Reader.dSeHigh;
                              float L = Reader.dSeLow;
                              float C = Reader.dSeClose;
                              double V = Reader.dSeVolume;
                              double OI = Reader.dSeOpenInterest;
                              string T = Reader.iSeTime.ToString();
                              string D = Reader.iSeDate.ToString();
  
                              label9.Text = SecName + "/";
                              if (int.Parse(D) == DT)
                              {
                                  string a = string.Concat(SecName, ",", Symbol, ",", D, ",", T, ",", O, ",", H, ",", L, ",", C, ",", V, ",", OI);
                                  if (SecName != "" &amp;&amp; V != 0)
                                  {
                                      Strwriter.WriteLine(a);
                                  }
  
                              }
                          }
                          abc++;
                      }
                      Reader.ReadMaster();
                  }
  
                  Reader.CloseDirectory();
                  Strwriter.Close();
                  Strwriter.Dispose();
              }
              catch
              {
                  Reader.CloseDirectory();
                  Strwriter.Close();
                  Strwriter.Dispose();
              }
          }
          catch
          {
          }
  </code></pre>
  
  <p>Please help me</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>    }
  </code></pre>