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.
Description: Name of the file that shall be read
Description: Number of lines in file