How do you select a specific line from an open file and input those specific into a designated textbox?
When I open up a file with the opendialog() and then select the file that I want to import(or to pull data from). This is the text file setup that I am trying to get the information from:
--------------------------------------------------------
ASSIGN.RSM A 6:00:00 "Initialize Times"
ASSIGN.RSM B 6:10:59
ASSIGN.RSM C 6:02:02
--------------------------------------------------------
Now I want to input the first line if they select A, which designates the first line of the text file and then from there to input the 6 in textbox1.text and 00 into textbox2.text and 00 into textbox3.text. Now if they select B, then it'll pull the information from line 2 and put the 6 in textbox1.text and the 10 in textbox2.text and etc. How would I go about doing that? Thanks.
When I open up a file with the opendialog() and then select the file that I want to import(or to pull data from). This is the text file setup that I am trying to get the information from:
--------------------------------------------------------
ASSIGN.RSM A 6:00:00 "Initialize Times"
ASSIGN.RSM B 6:10:59
ASSIGN.RSM C 6:02:02
--------------------------------------------------------
Now I want to input the first line if they select A, which designates the first line of the text file and then from there to input the 6 in textbox1.text and 00 into textbox2.text and 00 into textbox3.text. Now if they select B, then it'll pull the information from line 2 and put the 6 in textbox1.text and the 10 in textbox2.text and etc. How would I go about doing that? Thanks.
Comment