Streams.close(fileName)
Close file if it is open. Ignore call if file is already closed or does not exist.
function close
extends Modelica.Icons.Function;
input String fileName "Name of the file that shall be closed" annotation(
Dialog(loadSelector(filter = "Text files (*.txt)", caption = "Close text file")));
end close;