If you can fit the final data into an array then wouldn't you also be able to fit it in a string and split it, as has been suggested? In any case if you would like to process the file one line at a time you can also try something like this:Readline allows reading of a stream (such as STDIN) on a line-by-line basis. Note that once you've invoked this module, your node program will not terminate until you've closed the interface, and the STDIN stream.Writable streams are elegant and simple to use. Writing text or binary data to Node.js streams is effortless, and even creating fully functional custom writable streams is a walk in the park with the new streams2 functionality introduced in Node.js v0.10 (or using the polyfill readable-stream module). For additional reading. Crypto API; File ...Serial communication with NodeJS arduino. Mar 2015 How can you talk to hardware peripherals, lights or robots from your laptop? For many cases, the answer is: Serial communication. With serial communication, you can send bits and bytes "in series" over a wire. ... The default readline parser is nice to get line breaks out of the way.The SIGTERM signal is sent to a Node.js process to request its termination. Unlike the SIGKILL signal, it can be listened on or ignored by the process. This allows the process to be shut down in a nice manner, by releasing the resources it allocated, like file handlers or database connections. This is a bug in node.js, ReadLine's Interface calls _normalWrite() on each 'data' event and _normaWrite has a comment that it should try to break on newlines, but currently it just calls _onLine().. Something along the lines of this should fix it for you:Pausing readline in Node.js. Ask Question Asked 5 years, 11 months ago. ... It mentioned in the node.js document: ... Node.js Readline Interface 'pause' event does not pause input stream. 2. Make async call from readline's line callback? 0. Show file lines with delay in Node.js. 2.