WOLFRAM SYSTEM MODELER
countLinesReturn the number of lines in a file |
|

SystemModel["Modelica.Utilities.Streams.countLines"]

This information is part of the Modelica Standard Library maintained by the Modelica Association.
numberOfLines = Streams.countLines(fileName)
Function countLines(..) opens the given file, reads the complete content, closes the file and returns the number of lines. Lines are separated by LF or CR-LF.
| fileName |
Type: String Description: Name of the file that shall be read |
|---|
| numberOfLines |
Type: Integer Description: Number of lines in file |
|---|