Predmet:Re: Import iz txt
eve ti loop gi cita site redovi od pocetok do kraj:
PreuzmiIzvorni kôd (Visual Basic):Dim strVlez As String
Open "C:\zipTest\data.txt" For Input As 1
Do
Line Input #1, strVlez
MsgBox strVlez
Loop Until EOF(1)
Close 1
Ova cita dve linii mozes da dodadis kolku sakas
PreuzmiIzvorni kôd (Visual Basic): Dim strVlez As String
Open "C:\zipTest\data.txt" For Input As 1
Line Input #1, strVlez ' prv red
MsgBox strVlez
Line Input #1, strVlez ' vtor red
MsgBox strVlez
Close 1