.OpenModelica.Scripting.readFile

Returns the contents of a file.

Information

Returns the contents of a file as a string or an empty string if the file couldn't be read. If the file couldn't be read an error message is emitted which can be viewed with getErrorString().

Interface

impure function readFile
  input String fileName;
  output String contents;
end readFile;

Generated at 2025-05-10T18:20:09Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos