A simple solution: https://gist.github.com/1722850

Bruno

On Feb 1, 5:23 pm, Lorenzo Giuliani <[email protected]> wrote:
> hello,
>   I need an advice. I need to concatenate many files into one, yesterday I
> came out with this messy code:
>
> https://raw.github.com/aliem/chomp/master/chomp.js
>
> My concern is that I don't know when this can (and it will) fail, right now
> I'm only listening to the "error" event on the read stream. The function's
> actual flow seems bad to me, most of the times I like how node works, but I
> found that dealing with stream is a bit difficult.
>
> So, is there a better way to handle my use case?.
>
> bye
> ~lor

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to