c# - how can i write line by line in txt data? -
I try to write line with line data but if I run my application Script.txt
Write the last text 1 data in Private Zero Button 1_Click (Object Sender, EventArgs E) {System.IO.TextWriter tw; Tw = new streamer ("C: /Script.txt"); Tw.WriteLine (textBox1.Text); Tw.Close (); } "post-text" itemprop = "text"> If you need to enclose the line but not replace all the contents, then "true" is the second parameter for the creator of StreamWriter In:
tw = new streamer ("C: /Script.txt", true);
Comments
Post a Comment