title: How can I put quotes in a string?
body: <p>I need to write a string literal to a text file, but the C# compiler finds errors when I use quote characters in it.</p>
  
  <p>My current code:</p>
  
  <pre><code>writeText.WriteLine("&lt;?xml version="1.0" encoding="utf-8"?&gt;");
  </code></pre>
  
  <p>I need the output for the text file to be:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>How can I put quote characters in strings in C#?</p>