file_bin_close

Closes a previously opened binary file. You supply the file ID value, as returned by the function file_bin_open().

NOTE: These functions do not work when the target module is HTML5.

 

Syntax:

file_bin_close(binfile);

ArgumentType Description
binfileBinary File ID The ID of the file to close.

 

Returns:

N/A

 

Example:

file = file_bin_open("myfile.bin", 2);
file_bin_rewrite(file);
file_bin_close(file);

This would open a file from the same directory as the game, and assign its index to the variable "file". It would then re-write the file (clearing it of data), and close it again.