Raw file functions for GameMaker
A downloadable extension
Download NowName your own price
Links: marketplace (if you want) · documentation · source code
This extension exposes low-level C file functions (stdio.h) to you under file_raw_
prefix.
These allow for buffer-styled operations on files, as well as a few extras (e.g. flushing changes to a file without costly close-reopen, or reading X characters from a file as a string).
Also, in the name of performance and not spending too much time on a free extension, it does not do too much error checking, so you might be able to crash your game if you try hard enough.
Status | Released |
Category | Assets |
Author | YellowAfterlife |
Tags | GameMaker |
Download
Download NowName your own price
Click download now to get access to the following files:
file_raw.gmez 66 kB
file_raw.yymp 68 kB
Comments
Log in with itch.io to leave a comment.
I am trying to append the file and continue writing. But when using:
file_raw_seek(a_file,file_raw_seek_end,0);
I don't get to the end of the file. Tested to seek just 1 byte from start and that works. But I can't seek from relative position. Whenever I seek it start from the start of the file. file_raw_seek do return 1.
Tested to manually seek to the end with:
var seek_pos=0;
while (file_raw_eof(a_file)=false)
{
file_raw_seek(a_file,file_raw_seek_start,seek_pos);
seek_pos+=1;
}
But it becomes a infinite loop.