Programmer127
January 7th, 2007, 08:13 PM
The following code writes all of the text in richtextbox1->text to the file located at the path in textbox1->text. But, the text file inserts a little square in the place of each new line. How can I fix this so I can write multiple lines to a text file? Thanks in advance!
------------------------------------------------------------------------------------------------
using namespace System;
IO::File::WriteAllText(this->textBox1->Text, this->richTextBox1->Text);
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
using namespace System;
IO::File::WriteAllText(this->textBox1->Text, this->richTextBox1->Text);
------------------------------------------------------------------------------------------------