file_bin_position

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

Syntax:

file_bin_position(binfile);


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


Returns: Real


Description

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.


Example:

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