1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
Chinese-characters/get-total.js
2022-12-08 23:57:50 +08:00

6 lines
197 B
JavaScript

const fs = require('fs');
const path = require('path');
const DataFile = path.join(__dirname, './data-single-word.txt')
let total = fs.readFileSync(DataFile, 'utf8')
console.log(total.length)