how do i get a program that i've written/writing to save files it creates in a specific location, and how can i get the program to load files it as already created?
Printable View
how do i get a program that i've written/writing to save files it creates in a specific location, and how can i get the program to load files it as already created?
you can use the StreamReader as StreamWritter classes for reading and writing to files they are in sytem.io
heres an example of how to use them
VB Code:
dim write as new streamwriter(application.StartupPath & "\test.txt") write.writeline("test writing to file") write.close dim read as new streamreader(application.statupPath & "\test.txt") dim readInfo as string readInfo = read.readline read.close
be shure to import system.io at the top or use the classes full names