Private Sub cmdLoadConfig_Click()
Dim strTextLine As String
Open "C:\abcd.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, strTextLine
txtRangeSelect.Text = strTextLine
Loop
Close #1
End Sub
I can understand on how to read in file but how do i loop for when the user clicks the next button. I just need to read one line each time the Next Button is pressed.
Dim strTextLine As String
Open "C:\abcd.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, strTextLine
txtRangeSelect.Text = strTextLine
Loop
Close #1
End Sub
I can understand on how to read in file but how do i loop for when the user clicks the next button. I just need to read one line each time the Next Button is pressed.