How to read Connection String from a Config file?
<p>I wanted to develop an App which should read Connectionstring from all the config files present inside a Folder(including Subfolders). I have developped win form App for this.</p>

<pre><code> private void btnConnString_Click(object sender, EventArgs e)
 {
     var files = Directory.GetFiles(
         this.txtPath.Text.Trim(), 
         "*.config", 
         SearchOption.AllDirectories);
     foreach (string filepath in files)
     {
         string fileName;
         fileName = Path.GetFileName(filepath);
     } 
 }
</code></pre>

<p>Now I have to read connection string. How can I do?</p>
