determine if a file on the server exists
<p>I'm reading a file that may or may not be on the server like this:</p>

<pre><code>string TheFile = System.IO.File.
ReadAllText(HttpContext.Current.Server.MapPath("~\\Scripts\\MyScript.js"));
</code></pre>

<p>If the file is not there, it throws an exception. I could control this with a try/catch but I was wondering if there's a way to know if a file exists using a less dramatic approach.</p>

<p>Thanks for your suggestions.</p>
