I am given a project to store stuff in files and retrieve them. So I need help with the open file method. I want the users to be able to open a specific file in the same way they open files in windows. SO PLEASE HELP ME
use the common dialog control. You will need to set it in your project components. Its dead easy to use though and looks just like other windows open/save dialogues etc.
Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."
the common dialog control is just an interface that allows the user to specify a directory, filename etc and a few other things, but it doesn't actually DO anything with the file.
What it does with the file after the user has clicked on Open, is up to you, and your code.
Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."
are you wanting to open the file so that you can edit the contents in VB..if so you need the open method. This does not open the file with the associated app, but gives you direct access to the bytes of the file..
2 examples are
open myfile for Input as #1 'input line by line (doesn't work on binary files)
open myfile for Binary as #1 'binary file input