Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

write file with deno

// async
await Deno.writeTextFile("./file.txt", "hello world");
// sync
Deno.writeTextFileSync("./file.txt", "hello world");
Comment

read file with deno

// async
console.log(await Deno.readTextFile("./file.txt"));
// synv
console.log(Deno.readTextFileSync("./file.txt"));
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript sum array of objects 
Javascript :: how to get the value of radio button in jquery 
Javascript :: Codewars Beginner Series #3 Sum of Numbers 
Javascript :: how to play jquery audio 
Javascript :: email regex specific domain simple 
Javascript :: javascript replace all characters except letters and numbers 
Javascript :: jquery 1 second after page load 
Javascript :: find intersection of multiple arrays in javascript 
Javascript :: javascript check uncheck checkbox 
Javascript :: graphqlHTTP is not a function 
Javascript :: js localstorage boolean 
Javascript :: puppeteer how to serch for text 
Javascript :: javascript regex for firstname 
Javascript :: react native navigation hide navbar 
Javascript :: detect if scrolled to bottom 
Javascript :: setinterval in angular 6 
Javascript :: disable auto suggest html 
Javascript :: add class queryselector 
Javascript :: jquery set text of h1 
Javascript :: how to convert number to array in javascript using Array.from 
Javascript :: javascript random rgb 
Javascript :: remove last character from string jquery 
Javascript :: NullInjectorError: R3InjectorError httpclient 
Javascript :: dangerouslySetInnerHTML did not match error in React 
Javascript :: discord.js custom create channel 
Javascript :: set onclick javascript 
Javascript :: javascript sort in array of objects 
Javascript :: mongoose connection nodejs 
Javascript :: how to add comment in react js 
Javascript :: node string to json 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =