Closing a text file.
The operator ::close_file closes a file which was opened via the operator ::open_file.
|
FileHandle (input_control) |
file -> HTuple.long |
| File handle. | |
open_file("/tmp/data.txt","input",&FileHandle) ;
/* ... */
close_file(FileHandle) ;
If the file handle is correct ::close_file returns the value H_MSG_TRUE. Otherwise an exception handling is raised.
Basic operators