Thanks, but i want just make a break in my code every 10000 lines read to 
call another asych method, but it seems that all the files system 
objet/method are asynchronous and can't make a pause every 10000 lines.

Le vendredi 14 février 2014 17:49:50 UTC+1, Alex Kocharin a écrit :
>
>  
> fs.createFileStream
>  
>  
> 14.02.2014, 20:47, "Laurent Sertorius" <[email protected]<javascript:>
> >:
>
> I use readFileSync method, but i want to read this file in many blocks (1 
> block = 10 000 lines of my bigfile)
>  
> fs.readFileSync('./myBigFic').toString().split('\n').forEach(function 
> (line) { 
>  
> An idea ?
>
>  
> -- 
> -- 
> 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] <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to