title: Deleting file after upload
body: <p>I am trying to upload a file with the FileUpload control. When file is uploaded, I extract information from it and then i want to delete it. </p>
  
  <p>I manage to upload it, save it and get the info from it, but when i try to delete it i get the follwing exception
  "The process cannot access the file 'D:\IIS**<em>OMITTED</em>***\V75 personal ny.csv' because it is being used by another process. </p>
  
  <pre><code> string fn = Path.GetFileName(fu.PostedFile.FileName);
          string SaveLocation = Server.MapPath("UploadedCSVFiles") + "\\" + fn;
          FileInfo fi = new FileInfo(SaveLocation);
  
              fu.PostedFile.SaveAs(SaveLocation);
              fu.PostedFile.InputStream.Dispose();
              DataTable dt = AMethodThatUsesFile(SaveLocation);
              fi.Delete();
  </code></pre>