Closes an open file specified by refnum and returns the path to the file associated with the refnum.

Error I/O operates uniquely in this function, which closes the file regardless of whether an error occurred in a preceding operation. This ensures that files are closed correctly.


icon

Inputs/Outputs

  • cbsrn.png refnum —

    refnum is the file refnum associated with the file you want to close.

  • cerrcodeclst.png error in —

    error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality.

    This node runs normally even if an error occurred before this node runs.

  • ipath.png path —

    path is the corresponding path to refnum.

  • ierrcodeclst.png error out —

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\File IO\Datalog\Datalog File.lvproj