title: How do you store strings in a .txt file?
body: <p>I've been creating a program over the past few days. The program stores a string "Dim info As String = Nothing" where the input is asked later.</p>
  
  <p>EG: I input "Hello World!" to the variable 'info', how do I store the value of 'info' (Hello World!) to a .txt file? Or is this not possible?</p>
  
  <p>(Still a beginner to vb.net, looking for simple answers.)</p>
  
  <p>Attempt 1 (Find error please):</p>
  
  <pre><code>Sub Main()
      Dim path As String = "C:\VBTextFiles\Test1.txt"
      Dim stringex As String = "Hello world!"
      File.WriteAllText(path, stringex)
  End Sub
  </code></pre>