Do Until Eof(giFileNum1%)
giZ=giZ+1
Loop
was du da gebaut hast, nennt man eine endlosschleife.
wie willst du denn jemals an das Ende der Datei kommen, wenn du überhaupt keine zeilen der Datei einliest

Dim text As String, fileNum As Integer
fileNum% = FreeFile()
Open "c:\config.sys" For Input As fileNum%
giZ=0
Do Until EOF(1)
Line Input #1, text$
giZ=giZ+1
Loop
Close fileNum%
ich glaube, damit kommst du eher ans Ziel
eknori