close_file ( : : FileHandle : )

Closing a text file.

The operator close_file closes a file which was opened via the operator open_file.


Parameters

FileHandle (input_control)
file -> integer
File handle.


Example
open_file('/tmp/data.txt','input',FileHandle) 
// ....
close_file(FileHandle).

Result

If the file handle is correct close_file returns the value 2 (H_MSG_TRUE). Otherwise an exception handling is raised.


Parallelization Information

close_file is local and processed completely exclusively without parallelization.


Possible Predecessors

open_file


See also

open_file


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH