title: How to replace backslash '\' with slash '/'?
body: <p>In my code I want to replace backslash character <code>\</code> by a forward slash character <code>/</code> in a string. I've tried the following code:</p>
  
  <pre><code>string str = chosen_file.Replace("/", @"\");
  </code></pre>
  
  <p>where, <code>chosen_file</code> is a <code>string</code> which contains numerous occurances of the <code>\</code> character.
  But it doesn't seem to be working. </p>
  
  <p>Can I know any other solutions for this issue?</p>