steam_file_write_file

Writes contents of a local file to a Steam Cloud file.

Syntax:

GML Code Example

steam_file_write_file(steam_filename, local_filename);


Argument Description
steam_filename The Steam Cloud file to copy over.
local_filename The local file to use to copy from.


Returns: real


Description

With this function you can copy the contents of a locally saved file to a file that is synchronised with the Steam Cloud. The local file must exist before using this function, and it will return a value of 0 if it fails for whatever reason and a value greater than 0 if it succeeds.


Example:

GML Code Example

steam_file_write_file("rm_koala.png", "Koala2.png");

The above code will copy the contents of the file "Koala2.png" to the Steam Cloud file "rm_koala.png".





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