title: Writing a string to a text file - Visual Basic
body: <p>I've been trying to write a string to a text file, but whenever the process is done, it has only written a blank line. Writing integers works fine. I've researched the problem, but haven't been able to find a solution. Code:</p>
  
  <pre><code>    Dim strSave As String
      strSave = strCharName
  
      My.Computer.FileSystem.WriteAllText _
      ("C:\UnnamedGame\NameOne.txt", strSave, False)
  </code></pre>