file_bin_seek_relative

Downloadfile_bin_seek_relative(file,pos)   Moves the position pointer of the given file forwards or backwards relative to its current position.
/*
**  Usage:
**      file_bin_seek_relative(file,pos)
**
**  Arguments:
**      file    file id of an open binary file
**      pos     position to seek to relative to the current position
**
**  Returns:
**      nothing
**
**  GMLscripts.com
*/

{
    var file,offset;
    file = argument0;
    offset = argument1;
    file_bin_seek(file,file_bin_position(file)+offset);
}

Click if you've used this script[Please Login]
Projects: 1

 Contributor: Leif902


comments powered by Disqus