title: Converting a URI path to a relative file system path in .NET
body: <p>How do I convert an absolute or relative URI path (e.g. <code>/foo/bar.txt</code>) to a (segmentwise) corresponding relative file system path (e.g. <code>foo\bar.txt</code>) in .NET?</p>
  
  <p>My program is not an ASP.NET application.</p>