I tried to find an example on using node.js to read a file line by line. I found none so I had to write one myself. // Module: FileLineReader // Constructor: FileLineReader(filename, bufferSize = 8192) // Methods: hasNextLine() -> boolean // nextLine() -> String // // var fs = require("fs"); var sys = require("sys"); exports.FileLineReader = function(filename, bufferSize) { if(!bufferSize) { buffe