Rich Text Box's text to a txt file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I tried to use FileStream and streamWriter to write a Rich Text Box's text
to a txt file. But all text is in one line. All return inputs in the Rich
Text Box are showed like a small square []. I tried NewLine property and also
binaryWriter. Neither work ok.
Could you help me with it?
Thanks in advance.

Li
 
Li said:
Hi,
I tried to use FileStream and streamWriter to write a Rich Text Box's text
to a txt file. But all text is in one line. All return inputs in the Rich
Text Box are showed like a small square []. I tried NewLine property and also
binaryWriter. Neither work ok.
Could you help me with it?
Thanks in advance.

Li


MyRichTextBox.savefile(filename,RichTextBoxStreamType.PlainText)

or

Dim MyReader as new io.StringReader(MyRichTextBox.ToStrring)

Dim MyLine as string = MyReader.ReadLine

Do loop....then write or append the 'MyLine' to a file.


Denis
 
Back
Top