title: Can an aspx project create a file and email it?
body: <p>I am developing an *.aspx.cs project which generates text data.  I need to save this away for the user to use later.  I've tried saving it on the client machine with:</p>
  <pre><code>FileStream fStream = new FileStream(&quot;C:\\MyDir\\Data.txt&quot;, FileMode.Create, FileAccess.Write);
  </code></pre>
  <p>But this fails with an 'unauthorised access' message.  Is it at all possible to create local files?
  If not, I'd be happy sending it as an email attachment (not in the email body)</p>
  <p>I would have thought this would be a common requirement, but I can't find anything useful with a websearch.</p>
  <p>I'd be grateful for any help.</p>
  <p>Tony Reynolds (UK)</p>