<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3376508392331888241.post3631510805915640879..comments</id><updated>2012-01-11T12:13:08.258-08:00</updated><category term='processing'/><category term='tools'/><category term='ai'/><category term='erlang'/><category term='clojure'/><category term='dd'/><category term='cappuccino'/><category term='junit'/><category term='vm'/><category term='community'/><category term='maven'/><category term='gwt'/><category term='time machine'/><category term='hadoop'/><category term='telnetd'/><category term='starcraft'/><category term='bytecode'/><category term='firefox'/><category term='grails'/><category term='p2v'/><category term='git'/><category term='haskell'/><category term='ast'/><category term='app'/><category term='dht'/><category term='nosql'/><category term='testings'/><category term='training'/><category term='backup'/><category term='gaelyk'/><category term='bittorrent'/><category term='xml'/><category term='reading'/><category term='saaraa'/><category term='virtualbox'/><category term='java'/><category term='grouch'/><category term='webcam'/><category term='graffiti'/><category term='textmate'/><category term='aspectj'/><category term='game'/><category term='ideas'/><category term='test first challenge'/><category term='android'/><category term='groovy'/><category term='mac'/><category term='fun'/><category term='heroku'/><category term='testing'/><category term='ubuntu'/><category term='coffeescript'/><category term='subversion'/><category term='ruby'/><category term='couchdb'/><category term='groovycasts'/><category term='javascript'/><category term='redis'/><category term='jasmin'/><category term='github'/><category term='environment'/><category term='backbonejs'/><category term='lua'/><category term='geb'/><category term='gradle'/><category term='agile'/><category term='screencasts'/><category term='jetty'/><category term='neo4j'/><category term='nodejs'/><category term='windows'/><category term='imagemagick'/><category term='ql.io'/><category term='tdd'/><category term='cometd'/><category term='get your groovy on'/><category term='anomaly detection'/><category term='tapestry'/><category term='linux'/><category term='arduino'/><category term='lean'/><category term='geddy'/><category term='grease monkey'/><category term='octave'/><category term='process'/><category term='jai'/><category term='mac os x'/><category term='communication'/><category term='jvm'/><category term='go'/><category term='nas'/><category term='express'/><category term='bricks.js'/><category term='groovy app engine'/><category term='dominion'/><category term='team'/><category term='jade'/><category term='maps'/><category term='starcraft2'/><title type='text'>Comments on curious-attempt-bunny: Node: Reading Every Line in a File</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.curiousattemptbunny.com/feeds/3631510805915640879/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default'/><link rel='alternate' type='text/html' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html'/><author><name>Curious Attempt Bunny</name><uri>http://www.blogger.com/profile/04654980649772473807</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://bp0.blogger.com/_AGVcmhlbFXA/SFyTZJ-m_6I/AAAAAAAAAKU/S00uPUCHONs/S220/minime.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3376508392331888241.post-1258492683045785794</id><published>2012-01-11T12:13:08.258-08:00</published><updated>2012-01-11T12:13:08.258-08:00</updated><title type='text'>@Peter
Cheers

@Trevor
I&amp;#39;d seen that same Quor...</title><content type='html'>@Peter&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;@Trevor&lt;br /&gt;I&amp;#39;d seen that same Quora page. There certainly are a number of them. They&amp;#39;re not all such quality though, or perhaps I just been unlucky.&lt;br /&gt;&lt;br /&gt;@Steve&lt;br /&gt;My file was 600Mb. I *could* have read it all into memory. The readFileSync route is definitely more concise.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/1258492683045785794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/1258492683045785794'/><link rel='alternate' type='text/html' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html?showComment=1326312788258#c1258492683045785794' title=''/><author><name>Curious Attempt Bunny</name><uri>http://www.blogger.com/profile/04654980649772473807</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://bp0.blogger.com/_AGVcmhlbFXA/SFyTZJ-m_6I/AAAAAAAAAKU/S00uPUCHONs/S220/minime.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html' ref='tag:blogger.com,1999:blog-3376508392331888241.post-3631510805915640879' source='http://www.blogger.com/feeds/3376508392331888241/posts/default/3631510805915640879' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1873692906'/></entry><entry><id>tag:blogger.com,1999:blog-3376508392331888241.post-2095751455061712069</id><published>2012-01-11T11:21:33.123-08:00</published><updated>2012-01-11T11:21:33.123-08:00</updated><title type='text'>The CoffeeScript code seems reasonable to me, give...</title><content type='html'>The CoffeeScript code seems reasonable to me, given your constraints.  Obviously, it would be pretty easy in CoffeeScript to encapsulate the pattern, so you&amp;#39;d never have to write it again.  Also, allow me to emphasize that your approach is only necessary for large files; for smaller files, you can do &amp;quot;readFileSync(fn).toString().split &amp;#39;\n&amp;#39;&amp;quot;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/2095751455061712069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/2095751455061712069'/><link rel='alternate' type='text/html' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html?showComment=1326309693123#c2095751455061712069' title=''/><author><name>Steve Howell</name><uri>http://www.blogger.com/profile/01618067697681142745</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html' ref='tag:blogger.com,1999:blog-3376508392331888241.post-3631510805915640879' source='http://www.blogger.com/feeds/3376508392331888241/posts/default/3631510805915640879' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1444279836'/></entry><entry><id>tag:blogger.com,1999:blog-3376508392331888241.post-7364810073544642781</id><published>2012-01-11T11:14:35.939-08:00</published><updated>2012-01-11T11:14:35.939-08:00</updated><title type='text'>There&amp;#39;s a good Quora question on exactly this:...</title><content type='html'>There&amp;#39;s a good Quora question on exactly this: http://www.quora.com/What-is-the-best-way-to-read-a-file-line-by-line-in-node-js&lt;br /&gt;&lt;br /&gt;Groovy has many more high-level constructs baked in than Node does. But Node has an astonishing number of high-quality libraries for such a young ecosystem, and several of them can do what you want quite easily.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/7364810073544642781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/7364810073544642781'/><link rel='alternate' type='text/html' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html?showComment=1326309275939#c7364810073544642781' title=''/><author><name>Trevor Burnham</name><uri>http://www.blogger.com/profile/01226338154612675285</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_E2Ic4yo6I04/SHaFGtr-ImI/AAAAAAAAAAM/p9yX3PLqs6Q/S220/Trevor+Burnham+in+red+shirt+(2006)+-+Thumbnail.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html' ref='tag:blogger.com,1999:blog-3376508392331888241.post-3631510805915640879' source='http://www.blogger.com/feeds/3376508392331888241/posts/default/3631510805915640879' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-364613379'/></entry><entry><id>tag:blogger.com,1999:blog-3376508392331888241.post-8509113868535410812</id><published>2012-01-10T01:38:17.193-08:00</published><updated>2012-01-10T01:38:17.193-08:00</updated><title type='text'>Vert.x has a Pump class for this, which may be of ...</title><content type='html'>Vert.x has a Pump class for this, which may be of interest: https://github.com/purplefox/vert.x/blob/master/src/tests/java/org/vertx/tests/core/streams/PumpTest.java</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/8509113868535410812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3376508392331888241/3631510805915640879/comments/default/8509113868535410812'/><link rel='alternate' type='text/html' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html?showComment=1326188297193#c8509113868535410812' title=''/><author><name>Peter Ledbrook</name><uri>http://www.blogger.com/profile/07926972044560116057</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.curiousattemptbunny.com/2012/01/node-reading-every-line-in-file.html' ref='tag:blogger.com,1999:blog-3376508392331888241.post-3631510805915640879' source='http://www.blogger.com/feeds/3376508392331888241/posts/default/3631510805915640879' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-421424296'/></entry></feed>
