954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Opening a user text file

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.

yongj
Junior Poster in Training
79 posts since May 2010
Reputation Points: 11
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: