读取一个指定文件到一个数组.
#Include <File.au3>
_FileReadToArray($sFilePath, ByRef $aArray)
| $sFilePath | 要读取的文件的完整路径与文件名. | 
| $aArray | 要储存文件内容的数组. | 
| 成功: | 返回 1 | 
| 失败: | 返回 0 并设置 @error | 
| @Error: | 1 = 打开指定文件出错 | 
| 2 = 不能分割文件 | 
#include <File.au3>
Local $aRecords
If Not _FileReadToArray("error.log", $aRecords) Then
    MsgBox(4096, "错误", " Error reading log to Array     error:" & @error)
    Exit
EndIf
For $x = 1 To $aRecords[0]
    MsgBox(4096, 'Record:' & $x, $aRecords[$x])
Next