Deno.writeTextFile
Asynchronously write string data
to the given path
, by default creating a new file if needed, else overwriting.
await Deno.writeTextFile("hello1.txt", "Hello world\n");
Requires allow-write
permission, and allow-read
if options.create
is false
.
function writeTextFile(
data: string,
)
: Promise<void>;