list all the javascript ways you know about reading / writing local files, traditional, weird or creative.
first give an example to show respect:
var fs=require("fs");
fs.readFile("readtxt/demo.txt","utf-8",function(err,data){
if(err){
console.error(err);
}
else{
console.log(data);
}
});