Answers for "write in file in typescript"

1

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");
}
})
Posted by: Guest on December-10-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language