Question Save and load button help for a simple database

razza311

Member
Joined
Apr 12, 2013
Messages
5
Programming Experience
Beginner
Hi im working on a simple database program for school in visual basic, i need a load and save button for the program. The program loads up the data into a list box, there are 6 text boxes that are used to bring the data to the list box. I just need the save button to save all the data to a .txt file and a load button to then bring all the data back to the list box to be displayed.

Thanks in advance
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,295
Location
Sydney, Australia
Programming Experience
10+
You would use a StreamReader to read the text from the file and a StreamWriter to write the text to the file. I'm not about to write the code for you but you'll find plenty of examples of using those two classes on the web. In fact, if you'd simply Googled the obvious keywords like write text file vb.net then you'd have found them already. If you try something and have issues with it then by all means post it back here and we can help you fix it.
 
Top Bottom