writeTextFileSync method
Synchronously write string data to the given path, by default creating
a new file if needed, else overwriting.
Deno.writeTextFileSync("hello1.txt", "Hello world\n"); // overwrite "hello1.txt" or create it
Requires allow-write permission, and allow-read if options.create is
false.
Implementation
void writeTextFileSync(
_i2.Object path,
_i2.String data, [
_i4.WriteFileOptions? options,
]) {
_i3.callMethod(
this,
'writeTextFileSync',
[
path,
data,
options ?? _i6.undefined,
],
);
}