home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / _FileReadToArray.au3 < prev    next >
Text File  |  2005-02-02  |  257b  |  10 lines

  1. #include <file.au3>
  2. Dim $aRecords
  3. If Not _FileReadToArray("error.log",$aRecords) Then
  4.    MsgBox(4096,"Error", " Error reading log to Array     error:" & @error)
  5.    Exit
  6. EndIf
  7. For $x = 1 to $aRecords[0]
  8.     Msgbox(0,'Record:' & $x, $aRecords[$x])
  9. Next
  10.