const fs = require('fs')
const file = process.argv[2]
fs.readFile(file, function (err, contents) {
if (err) {
returnconsole.log(err)
}
// có thể sử dụng fs.readFile(file, 'utf8', callback) cũng đượcconst lines = contents.toString().split('\n').length - 1console.log(lines)
})