|
本帖最后由 oceanwind 于 2011-12-21 10:51 编辑
http://www.autoitx.com/forum.php?mod=viewthread&tid=7344 之
#include <file.au3>
Dim $aRecords
If Not _FileReadToArray("test.txt",$aRecords) Then
MsgBox(4096,"Error", " Error reading log to Array error:" & @error)
Exit
EndIf
MsgBox(0,"","一共"&$aRecords[0]&"行")
For $x = 1 to $aRecords[0]
Msgbox(0,'Record:' & $x, $aRecords[$x])
Next
例 中之
#include <file.au3>
$CountLines = _FileCountLines("E:\Software\SoftW\AutoIT\MYscript\ZYGJauto\SUBMIT-2011-12-20.log")
MsgBox(64, "Error log recordcount", "There are " & $CountLines & " in the error.log.")
Exit
传不了TXT文本 把它导入后改成AU3文件
贴 在这里 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|