title: writing from textbox to text file C#
body: <p>I want to write from textboxes in windows form to textfile, I want to use the spilt. I want to be written in the text file like this</p>
  
  <p>Namelabel : NametextBox<br>
  passlabel : PasstextBox</p>
  
  <p>how can I do that!</p>
  
  <pre><code>StreamWriter txt = new StreamWriter("D:\\Register.txt")
  
              txt.Write(Namelabel.Text);
              txt.WriteLine(NametextBox.Text);
              txt.Write(passlabel.Text);
              txt.WriteLine(PasstextBox.Text);
  </code></pre>