how can I save the text in a richTextBox to an existing text file?
To save or load as an RTF: Code: 'save RichTextBox1.SaveFile "C:\MyFile.rtf", rtfRTF 'load RichTextBox1.LoadFile "C:\MyFile.rtf", rtfRTF To save or load to a text file: Code: 'save RichTextBox1.SaveFile "C:\MyFile.txt", rtfText 'load RichTextBox1.LoadFile "C:\MyFile.txt", rtfText
'save RichTextBox1.SaveFile "C:\MyFile.rtf", rtfRTF 'load RichTextBox1.LoadFile "C:\MyFile.rtf", rtfRTF
'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.
Forum Rules