AppCtrlScript

MAY Computer

Help

COUNTLINESINFILE

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

File

See also  

FOREACHLINEINFILE, STROCCCOUNT

Count the number of lines in a text file.

 

Syntax

COUNTLINESINFILE <VariableName>, <FileName>[, <SearchString>][, <CaseSensitive>]

Part

Description

<VariableName> Script variable to store result in.
<FileName> Name of the file to count lines for.
<SearchString> Optional search string. If specified then only lines containing the specified string are counted. * can be used to count only lines containing the specified string (*<MyString>*) and starting (<MyString>*) or ending (*<MyString>) with the specified string.
<CaseSensitive> 0|1; if 1 then SearchString parameter is intended for a case sensitive search. Default is 0.