title: Convert a text from text file to array with fs [node js]
body: <p>I have a txt file contains:</p>
  
  <blockquote>
    <p>{"date":"2013/06/26","statement":"insert","nombre":1}
    {"date":"2013/06/26","statement":"insert","nombre":1}
    {"date":"2013/06/26","statement":"select","nombre":4}</p>
  </blockquote>
  
  <p>how I can convert the contents of the text file as array such as:</p>
  
  <blockquote>
    <p>statement = <strong>[</strong><br>
            {"date":"2013/06/26","statement":"insert","nombre":1},
      {"date":"2013/06/26","statement":"insert","nombre":1},
      {"date":"2013/06/26","statement":"select","nombre":4}, <strong>];</strong></p>
  </blockquote>
  
  <p>I use the fs module node js. Thanks</p>
  
  <p>Sorry 
  I will explain more detailed: </p>
  
  <p>I have an array :</p>
  
  <pre><code>st = [
      {"date":"2013/06/26","statement":"insert","nombre":1},
      {"date":"2013/06/26","statement":"insert","nombre":5},
      {"date":"2013/06/26","statement":"select","nombre":4},
  ];
  </code></pre>
  
  <p>if I use this code :</p>
  
  <pre><code>var arr = new LINQ(st)
      .OrderBy(function(x) {return x.nombre;})
      .Select(function(x) {return x.statement;})
      .ToArray();
  </code></pre>
  
  <p>I get the result I want.</p>
  
  <blockquote>
    <p>insert select insert</p>
  </blockquote>
  
  <p>but the problem my data is in a text file.
  any suggestion and thanks again.</p>