title: imacros - read text file using javascript
body: <p>I want to read text file using javascript not using imacros loop</p>
  <p>I tried to read it using java with no luck</p>
  <blockquote>
  <p>function frdln(n){   var fr,s='';   try{</p>
  <pre><code>fr=new java.io.BufferedReader(new java.io.FileReader(n));
  
  s=fr.readLine();
  
  if(s==null){s=''}else{s=''+s};
  
  fr.close();
  
  fr=null;   }catch(e){
  
  alert(''+e);   };   return s; };
  </code></pre>
  </blockquote>
  <p>give me message error &quot;ReferenceError: java is not defined&quot;</p>
  <blockquote>
  <p>Note:I installed latest version of java and the same error appear</p>
  </blockquote>
  <p>if there is any other way to read text file or fix my code because I have no idea</p>