Returns the current position (in bytes; 0 is the first position) of the file with the given file id.



Argument Description
binfile The ID of the file to get the position in.

Returns: Real


This function will returns the current position in bytes, where 0 is the first position, of the file with the given file id. 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.


pos = file_bin_position(file);

This would store the current position in the variable "pos".

Back: Binary Files
Next: file_bin_seek
© Copyright YoYo Games Ltd. 2018 All Rights Reserved