title: How to check Read and write permissions on folder in C#
body: <p>In my website i want to create a new folder and then copy some files in it and also i want to create an <code>html</code> file through <code>C#</code> code. I want to know</p>
  
  <ol>
  <li>How to check read and write permission on a folder</li>
  <li>How to create an html file on runtime in project root</li>
  </ol>
  
  <p>Im using <code>Asp.net MVC 2</code> and <code>C#</code>.</p>