title: Creating/editing textfile through VB.NET
body: <p>How do I code the algorithm below in VB.NET?</p>
  
  <pre><code>Procedure logfile()
  {
      if "C:\textfile.txt"=exist then
          open the textfile;
      else
          create the textfile;
      end if  
      go to the end of the textfile;
      write new line in the textfile;
      save;
      close;
  }
  </code></pre>