title: Server.MapPath("test.txt")
body: <p>what is the difference between these code.  Both of them gives path to the file text.txt
  but not sure when to use them . I know if I want to get absolute path, I use Server.MapPath,</p>
  <p>The question when to use Path.GetFullPath(&quot;test.txt&quot;));
  // result is C:\Program Files (x86)\</p>
  <pre><code>  Response.Write(Server.MapPath(&quot;test.txt&quot;));
  </code></pre>
  <p>// result is C:\project_2022\myFriendContact\myClientList\guide\test.txt</p>
  <pre><code>  Response.Write(Path.GetFullPath(&quot;test.txt&quot;)); 
  </code></pre>
  <p>// result is C:\Program Files (x86)\IIS Express\test.txt</p>