Platform.ReadFileText

static string ReadFileText(string filename)

Reads the entire contents of the file as a UTF-8 string, taking advantage of any permissions that may have been granted by Platform.FilePicker. Returns null on failure.

   
string filename Path to the file. Not affected by Assets folder path.
RETURNS: string A UTF-8 decoded string if successful, null if not.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!