steam_file_read

Reads the contents of a Steam Cloud file.

Syntax:

steam_file_read(filename);


Argument Description
filename The name of the file to read from.


Returns: String


Description

This function will read the contents of the given file into a string which can later be parsed in your game.


Example:

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_share
© Copyright YoYo Games Ltd. 2018 All Rights Reserved