creating a folder without giving hardcore path in the code
<p>i need to create a folder named log after giving the path in a textbox like <code>D:\New Folder</code> without giving the hardcore path in the code like <code>var _logFolderPath = @"D:\New Folder\log";</code>
and after that i need to create two text files ba.txt and ra.txt in that log folder</p>

<p>This is my code</p>

<pre><code> DirectoryInfo Folder = new DirectoryInfo(textboxPath.Text);
 var _logFolderPath =textboxPath.Text;
 if (Folder.Exists)
 if (!Directory.Exists(_logFolderPath)) Directory.CreateDirectory(_logFolderPath);
</code></pre>

<p>and</p>

<pre><code>  using (var dest = File.CreateText(Path.Combine(_logFolderPath, line2 + ".txt")))
</code></pre>

<p>for reference
<a href="http://stackoverflow.com/questions/4253090/comparing-two-text-files">comparing two text files</a></p>
