So I've got some lines in my richtextbox, but when i click btnSaveLog, it saves, but everything is on one line...
I have to use a richtextbox to show all info. I've seen it does show the lines with Wordpad, but i'm saving it as a *.log file, so i'm using notepad.
Any solutions for this problem?
Code:
TextWriter stwLog = new StreamWriter("data.log");
stwLog.WriteLine(richTextBox1.Text);
stwLog.Close();