title: Write directly to Amazon S3
body: <p>I am reading Amazon S3 documentation, but I am bit lost...</p>
  
  <p>Actually, user upload a file to Amazon S3, then, I copy it to EC2, proccess it, back to S3 and user can download it.</p>
  
  <p>When I proccess the file, I need to create a html file, and I need to create in Amazon S3, but I don't know how can I create this file directly on S3. Right now, I create a file on EC2 and then I move it to S3.</p>
  
  <p>To create this html y use:</p>
  
  <pre><code>            TextWriter tw = new StreamWriter(pathFile);
              tw.WriteLine(page);
              tw.Close();
  </code></pre>
  
  <p>Where <em>page</em> is a string with html code, and pathFile is: <code>string outputWap = Server.MapPath("~/xxx.html");</code></p>
  
  <p>I'm using ASP.NET MVC 2.</p>
  
  <p>Thanks for your help.</p>
  
  <p>Regards.</p>