file_close (handle);

Closes the file with the given handle. A file must be closed before other programs can access it, or before it can be opened again in a different mode. As soon as the file is closed, the handle becomes invalid.


handle - File handle of the closing file.


var filehandle = file_open_write ("address.txt"); // opens the file address.txt
file_close(filehandle); // closes the file 		

See also:

file_open_read, file_open_write, file_open_append, file_var_write, file_var_read, file_str_write, file_str_read, file_chr_read, file_asc_write, file_asc_read ► latest version online