RESOLVED - File selection process

Puppybreath

New member
Joined
Jun 13, 2005
Messages
4
Programming Experience
Beginner
I am a newbie trying to write a conversion program that will reformat lines of data in a file.

I want to allow the user to select file they want converted and then open that file, but can't find anything in the books I am using. All the examples use hard coded file names when opening a file.

Can anyone point me in the right direction?

Thanks in advance.
 
Last edited:
If reformatting the lines is your problem, then please explain how do you want to reformat it. I mean, from what to what.

But if you want the user to have flexibility of choosing any files they want, you can use the OpenFileDialog which is accessible through the toolbox.
 
oh i understand what u want, yeah u have to use FileOpenDailog (available in standard controls tool box) and use following code in some event or place where u want to provide the user flexbility.
FileDailog1.FileName = "any default name";
FileDailog1.show
Dim FileNameToAlter = FileDialog1.FileName;
and now do what ever u want with "FileNameToAlter"

cheers....
 
Back
Top