View Full Version : How to store and retrieve variables from a file?
mark1221
10-01-2004, 04:27 AM
I have a program and an input box where users can set a variable, but i want the variable to be saved in an external file
and i want the program to retrieve that variable everytime the program starts.
I'll appreciate help :D
little birdy
10-01-2004, 08:01 AM
are you using vb6, or vb.net, or another version?
and, for doing things everytime a program starts, check out the OnLoad event.
mark1221
10-01-2004, 08:15 AM
I don't really care since i know both but i prefer VB6 tbh :\
little birdy
10-01-2004, 08:55 AM
well, i don't really remember anything specific about what i did with vb6 in high school, but in .net, you should check out the StreamWriter (and StreamReader) object in System.IO
mark1221
10-01-2004, 09:28 AM
Thanks! i got it working with
Imports System.IO
Great thing, really..
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.