how can I save the text in a richTextBox to an existing text file?
Printable View
how can I save the text in a richTextBox to an existing text file?
To save or load as an RTF:
To save or load to a text file:Code:'save
RichTextBox1.SaveFile "C:\MyFile.rtf", rtfRTF
'load
RichTextBox1.LoadFile "C:\MyFile.rtf", rtfRTF
Code:'save
RichTextBox1.SaveFile "C:\MyFile.txt", rtfText
'load
RichTextBox1.LoadFile "C:\MyFile.txt", rtfText
ok cool. Thanks. But whats the difference between a rtfRTF and a rtfText?
rtfRTF saves in RichText format, whereas rtfText saves in ASCII Text format.