2016年3月11日
Nodejs
File System 文件系统模块
fs.readFile("text.txt",function(err,data){
if (err) {
console.log("error");
}else{
console.log(data.toString());
}
})
// Output:
// hello字符编码
Last updated