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"); // overwrite "hello1.txt" or create it
Requires allow-write
permission, and allow-read
if options.create
is false
.
© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.writeTextFile