Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

write in file in typescript

const fs = require("fs");

let text = "Something you want to write in";

fs.writeFileSync("document.txt", text, function(err){
if(err){
  return console.log("error");
}
})
Source by www.semicolonworld.com #
 
PREVIOUS NEXT
Tagged: #write #file #typescript
ADD COMMENT
Topic
Name
1+2 =