(string, endOfFile) = readLine(fileName, lineNumber)


Function readLine(..) opens the given file, reads enough of the content to get the requested line, and returns the line as a string. Lines are separated by LF or CR-LF; the returned string does not contain the line separator.

If lineNumber > countLines(fileName), an empty string is returned and endOfFile=true. Otherwise endOfFile=false.


function writeString
  extends Modelica.Icons.Function;
  input String fileName "Name of the file that shall be read" annotation(
    Dialog(__Dymola_loadSelector(filter = "Text files (*.txt; *.dat)", caption = "Open file in which Real parameters are present")));
  input String line "Line of text";
  output Integer status "Status";
end writeString;

Generated at 2021-03-08T02:03:12Z by OpenModelicaOpenModelica 1.18.0~dev-131-g1f92f44 using GenerateDoc.mos