xxxxxxxxxx
const data = await Deno.readTextFile("hello.txt");
console.log(data);
xxxxxxxxxx
/**
* write.ts
*/
await Deno.writeTextFile("./hello.txt", "Hello World!");
console.log("File written to ./hello.txt");
/**
* Output: File written to ./hello.txt
*/