title: Try to use node.js, fs.read
body: <p>This is how I am calling fs.read, but I'm continually getting an error. Is there something wrong here with my syntax? </p>
  
  <p>The error on the command line is:  "errorCode": -1,</p>
  
  <pre><code>        var fs = IMPORTS.require('fs'), 
      sys = IMPORTS.require("sys")    
  
      var file=   this.filename, 
      start=  parseInt(offsetStart),
      end=    parseInt(offsetEnd);
      bufSize = 64 * 1024;
  
       fs.open(file,'r',0666,function(err,fd) {
            fs.read(fd,bufSize,0,end,start,function(err,str,count) {
                result = {    reply:str,
                          reply2:count            
                  };}); });
  </code></pre>