Sorry, this must be very elementary:
When writing line 1 to a textBox,
pressing return
writing line 2 to same tetBox.
Saving that to disc.
using (StreamWriter sw = new StreamWriter ("memo.txt"))
{
sw.WriteLine(textBox1.Text);
}
Reading that from disk.
using (StreamReader sr = new StreamReader ("memo.txt"))
{
textBox1.Text=sr.ReadLine();
}
I only get the line 1 back.
Q: How do I get all lines back?
--
Patrick.