Я пытаюсь прочитать числа из примера текстового файла: 01 02 03 04 05 06 Я хочу начать чтение со строки 15, но когда я использую skip (15), это вызывает ошибку преобразования.
Dim PbArrData_PrintTickets(FileLength)
Dim CurrentPRP = New String(7) {}
Using sr As StreamReader = New StreamReader(Application.Info.DirectoryPath & "/Database/Filters/" & FilterFile)
'Store the Entire File's Contents into the Array
Do While sr.Peek() >= 0
PbArrData_PrintTickets(ipbp) = sr.ReadLine.Skip(15) ' <-- Everytime I try to add Skip() it causes the error?
CurrentPRP(6) = Mid(PbArrData_PrintTickets(ipbp), 16, 2)
CurrentPRP(5) = Mid(PbArrData_PrintTickets(ipbp), 13, 2)
CurrentPRP(4) = Mid(PbArrData_PrintTickets(ipbp), 10, 2)
CurrentPRP(3) = Mid(PbArrData_PrintTickets(ipbp), 7, 2)
CurrentPRP(2) = Mid(PbArrData_PrintTickets(ipbp), 4, 2)
CurrentPRP(1) = Mid(PbArrData_PrintTickets(ipbp), 1, 2)