buffer_save

Save the contents of a buffer to a file.

Syntax:

GML Code Example

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


Description

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.


Example:

GML Code Example

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



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here