creating and saving a file to a directory
<p>I'm using a string builder to read several files from a directory like this:</p>

<pre><code>StringBuilder sb = new StringBuilder();

sb.Append(System.IO.File.ReadAllText(
       HttpContext.Current.Server.MapPath("~\\Scripts\\File1.js")));

sb.Append(System.IO.File.ReadAllText(
       HttpContext.Current.Server.MapPath("~\\Scripts\\File2.js")));

var TheFile = sb.ToString();
</code></pre>

<p>Now I want to save this sb in the \Script directory in file called MyFile.js. I see several methods available but I'm not sure which one to choose.</p>

<p>How do I do this?</p>

<p>Thanks.</p>
