title: Saving a string with null characters to a file
body: <p>I have a string that contains null characters.</p>
  
  <p>I've tried to save it to a file with this code:</p>
  
  <pre><code>myStringList.Text := myString;
  myStringList.SaveToFile('c:\myfile');
  </code></pre>
  
  <p>Unfortunately myStringList.Text is empty if the source string has a null character at the beginning.</p>
  
  <p>I thought only C string were terminated by a null character, and Delphi was always fine with it.</p>
  
  <p>How to save the content of the string to a file?</p>