steam_file_write_file

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

Syntax:

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:

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".


Back: Steam API
Next: steam_file_read
© Copyright YoYo Games Ltd. 2018 All Rights Reserved