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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top