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