removeFile

Remove file (ignore call, if it does not exist)

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Files.removeFile(fileName);

Description

Removes the file "fileName". If "fileName" does not exist, the function call is ignored. If "fileName" exists but is no regular file (e.g., directory, pipe, device, etc.) an error is triggered.

This function is silent, i.e., it does not print a message.

Syntax

removeFile(fileName)

Inputs (1)

fileName

Type: String

Description: Name of file that should be removed