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)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected