by ThUgGy (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (8 Votes)
This code is VERY usefull! It can load a files contents into a Rich Text Box and also save the contents!
'Add a Rich Text Box to your project first. Then read below.
'To save a rich text box:
RichTextBox1.savefile "file.txt"
'To load a rich text box:
RichTextBox1.loadfile "file.txt"