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

Method WriteFile

StereoKit/Util/Platform.cs:162–163  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

StepMethod · 0.80

Calls 3

ToUtf8Method · 0.80
platform_write_fileMethod · 0.80

Tested by

no test coverage detected