node js read files liny by line : I am quite new with Node.js. There is a folder on my computer where I have several textfiles(.fw4 format). I could found all the text files with the node-dir module. Furthermore I need to get some content of each file from specified columns. Actually this algorithm works fine, using the readline module.
I keep my files name in an array.
Something like this: [ '000037592.fw4', '000037593.fw4', '000037594.fw4' ] (Like this.)
What do I need actually?I would like that this whole system would work synchronously and when I get the first file content (000037592.fw4) it would log something like end of file..And it continue reading the other files from the array.
So far..It has not worked how I wanted..

Thank you so much in advance. I would appreciate any suggestion, how to get a solution for my problem.