Writes a UTF-8 text file to the filesystem, taking advantage of any permissions that may have been granted by Platform.FilePicker. Path to the new file. Not affected by Assets folder path. A string to write to the file. This gets converted to a UTF-8 encoding. True on success, False on failure.
(string filename, string data)
| 160 | /// converted to a UTF-8 encoding.</param> |
| 161 | /// <returns>True on success, False on failure.</returns> |
| 162 | public static bool WriteFile(string filename, string data) |
| 163 | => NativeAPI.platform_write_file_text(NativeHelper.ToUtf8(filename), NativeHelper.ToUtf8(data)); |
| 164 | |
| 165 | /// <summary>Writes an array of bytes to the filesystem, taking |
| 166 | /// advantage of any permissions that may have been granted by |
no test coverage detected