6 lines
197 B
JavaScript
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) |