📅  最后修改于: 2022-03-11 15:04:05.029000             🧑  作者: Mango
if (fs.exists('myfile.txt')) {
if (fs.read('myfile.txt').length === 0) {
console.log("File is Empty")
} else {
return JSON.parse(fs.read('myfile.txt'));
}
}