How+to+write+to+a+text+file+in+Vb

In visual basic if you wish to save a variable long term you have to save in it in a separate file, a good way to do this is to save it as a text file in notepad. The way to do this is to first create the blank notepad file you wish to save your data to, you then put into your VB program Dim(name of file as system.io.writesteam (location of file)) you then use a variable to group together your data e.g a structure, you then put file.write (name of strucure) then file.close