MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / ReadFileText

Method ReadFileText

StereoKit/Util/Platform.cs:198–202  ·  view source on GitHub ↗

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. Path to the file. Not affected by Assets folder path. A UTF-8 decoded string if successful, null if not.

(string filename)

Source from the content-addressed store, hash-verified

196 /// folder path.</param>
197 /// <returns>A UTF-8 decoded string if successful, null if not.</returns>
198 public static string ReadFileText(string filename)
199 {
200 ReadFile(filename, out string data);
201 return data;
202 }
203
204 /// <summary>Reads the entire contents of the file as a byte array,
205 /// taking advantage of any permissions that may have been granted by

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected