返回指定文件的行数.
#Include <File.au3>
_FileCountLines($sFilePath)
$sFilePath | 要读取的文件的所在路径 |
@Error: | 1 = 文件无法打开或者文件不存在. |
#include <File.au3>
Local $CountLines = _FileCountLines("error.log")
MsgBox(4160, "Error log recordcount", "There are " & $CountLines & " in the error.log.")
Exit