Hi, i've got the code below to read lines from a text/.dat file into a list box.
Open "file.dat" For Input As #1
Do Until intLoop = 20
intLoop = intLoop + 1
ReDim Preserve strOption(intLoop)
Line Input #1, strOption(intLoop)
lstDefinitions.AddItem Left(strOption(intLoop), 40)
This obviously reads the first 20 lines into the listbox, but how would i for example read the second 20 (lines 21 - 40) into the listbox?