Q:

write file with deno

// async
console.log(await Deno.readTextFile("./file.txt"));
// synv
console.log(Deno.readTextFileSync("./file.txt"));
0
// async
await Deno.writeTextFile("./file.txt", "hello world");
// sync
Deno.writeTextFileSync("./file.txt", "hello world");
0

Tags

New to Communities?

Join the community