|
I have an external file, that I would like to open and then also be allowed to select which line of information that I want to use within my program. For example:
This is what my external file looks like:
ASSIGN.RSM A 7:06:00 "Initialize Times" ASSIGN.RSM B 7:25:35 etc...
I want to open up this file, and pull the data that contains A and pull in the time of "7:06:00" into TextBox1.
So I was thinking of creating a new form, that displays the files that is on the user's computer and have a radio button on the side (or textbox) selecting which data that the person wants. For example:
Take for example, I have my main form with the TextBox1 awaiting the information being pulled from this external file. My open form, displays a list of files on the computer and on the other side displaying what is in this folder, much like that of a windows explorer. Then they would select the text file that they want, and then before clicking on the Open button, there is a group of radio buttons saying A, B, and etc... Then, when the user selects one of these radio buttons, and selects a file, and then clicks on open, TextBox1 on the main form will appear the data that was selected from the external file and from the selected radio button.
How would I go about doing this?
|