mirror of
https://github.com/seigler/rockstar-playground
synced 2025-07-26 01:06:10 +00:00
14 lines
315 B
JavaScript
14 lines
315 B
JavaScript
'use strict';
|
|
|
|
const lineByLine = require('./readlines.js');
|
|
const liner = new lineByLine('./test/fixtures/normalFile.txt');
|
|
|
|
let line;
|
|
let lineNumber = 0;
|
|
|
|
while (line = liner.next()) {
|
|
console.log('Line ' + lineNumber + ': ' + line.toString('ascii'));
|
|
lineNumber++;
|
|
}
|
|
|
|
console.log('end of line reached');
|