代码一:
Local $file = FileOpen("F:\2012_12\test.txt", 0)
While 1
Local $line = FileReadLine($file)
If @error = -1 Then ExitLoop
MsgBox(0, "Line read:", $line)
WEnd
FileClose($file)
代码二:
FileOpen("F:\2012_12\test.txt"0)
While 1
Local $line = FileReadLine("F:\2012_12\test.txt")
If @error = -1 Then ExitLoop
MsgBox(0, "Line read:", $line)
WEnd
FileClose($file)
Note: handle。