On Apr 11, 02014, at 14:02, Reza Razavipour <[email protected]> wrote:
> I need to read a file one line at a time. Similar to getLine in C++ and Java. > > How does one do that in node.js? Open a stream. Read until you get a line break. Do something. Repeat. If it’s a short file for sure, fs.readFile and split. There’s a bunch of trivial modules for this on the npm registry — pipe data in, lines come out. You CAN explain that!
signature.asc
Description: Message signed with OpenPGP using GPGMail
