Two quick script methods are: 1. Read file line by line using "LineMode" for reading and count lines: "FileOpen" then "LoopWhile" with end-of-file check, "FileRead", Incelement counter variable, "FileClose" at the end. 2. Use FileCompare (available in v3.0.0 and later) to compare it against an empty file. The returned value will tell you how many "new" lines were found. This method is much fatster and requires less coding, but it is not that obvious as the first method. : how i can count the number of lines in a text file using a jal script ? : regards.
|