Save the contents of a buffer to a file.


buffer_save(buffer, filename);

Argument Description
buffer The index of the buffer to save.
filename The name of the file to save as.

Returns: N/A


With this function you can save the contents of a buffer to a file, ready to be read back into memory using the buffer_load function.


buffer_save(buff, "Player_Save.sav");

Saves the current contents of the buffer with the id stored in the variable "buff" to a file.

Back: Buffers
Next: buffer_save_ext
© Copyright YoYo Games Ltd. 2018 All Rights Reserved