I have an application that allows the user to open a file by clicking file -> open. The thing I'm trying to do is read the text file...but I don't know how to assign the user defined text file that the user opened to an object.
I guess because I know what the user is going to open I can easily just do something like this:
Dim myFileIn as StreamReader
myInFile = File.OpenText("warehouse1.txt")
I want to be able to change "warehouse1.txt" to whatever text file the user opens. How can I do so?
Thanks.