📅  最后修改于: 2022-03-11 14:55:10.708000             🧑  作者: Mango
const fs = require('fs');
const fileName = process.argv[2];
readFile(fileName, 'utf8', (error, data) => {
if (error) {
console.error(error.message);
return;
}
console.log(data);