title: Creating file on server in asp.net project
body: <p>I want to create file and this file must create in folder App_Data in my project.</p>
  
  <p>How I can do it?</p>
  
  <pre><code> FileInfo MyFile = new FileInfo("~\\App_Data\\asd.txt");
              if (MyFile.Exists == false)
              {
                  FileStream fs = MyFile.Create();
                  fs.Close();
              }
  </code></pre>
  
  <p>I get this error</p>
  
  <p>Could not find part of the path "C:\Program Files (x86)\IIS Express\~\asd.txt".</p>