You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
309 B
13 lines
309 B
'use strict';
|
|
|
|
var lineByLine = require('./readlines.js');
|
|
var liner = new lineByLine('./dummy_files/twoLineFile.txt');
|
|
|
|
var line;
|
|
var lineNumber = 0;
|
|
while (line = liner.next()) {
|
|
console.log('Line ' + lineNumber + ': ' + line.toString('ascii'));
|
|
lineNumber++;
|
|
}
|
|
|
|
console.log('end of line reached');
|
|
|