Find out if the given file exists on the Steam Cloud.



Argument Description
filename The name of the file to check for.

Returns: Boolean


With this function you can check to see if a file from the Steam Cloud exists or not, with a return value of true if it exists, or false otherwise.


if steam_file_exists("Save.txt")
   save_str = steam_file_read("Save.txt");

The above code checks to see if a file exists on the Steam Cloud and if it does, it opens it and reads its contents into the variable "save_str".

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