HTML
CSS
PHP
Deno
Examples
Do It Yourself
Blog
Code
Input
Run
const file_path = 'intro-write.txt' // Write to file blocking, Deno will wait for this process before executing next lines of code Deno.writeTextFileSync(file_path, 'Writing text is simple.'); // Read the file to see if it truly wrties. console.log(Deno.readTextFileSync(file_path));
Related Chapters
Deno File Handling
Related Examples
Deno Example Write File With writeTextFile()
Deno Example Read File with readFileSync()
Deno File Handling Remove File Recursively with remove() and removeSync()
Deno Example Write File With writeFileStr() and writeFileStrSync()