title: How to extract file name from an Uri in C#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1105593/get-file-name-from-uri-string-in-c-sharp">Get file name from URI string in C#</a>  </p>
  </blockquote>
  
  
  
  <p>How to extract file name from an Uri in C#?</p>
  
  <p>for instance, I have a Uri </p>
  
  <pre><code>"http://audacity.googlecode.com/files/audacity-win-2.0.exe"
  </code></pre>
  
  <p>but how to extract the file name </p>
  
  <pre><code>"audacity-win-2.0.exe"
  </code></pre>
  
  <p>and save it as a string?</p>
  
  <p>Thank you,</p>
  
  <p>Jerry</p>