title: groovy script Error
body: <p>I am newbie to groovy. In command prompt (I am not using any IDE), I typed following : (No Problem with environment variables settings please)</p>
  
  <pre><code>groovy -n -e "println line.toLong()" data.txt
  </code></pre>
  
  <p><em>Error :</em></p>
  
  <pre><code>Caught: java.io.IOException: Invalid argument
  java.io.IOException: Invalid argument
  </code></pre>
  
  <p>data.txt is there in that directory (verified using TAB key)</p>
  
  <hr>
  
  <p>Not sure why its throwing Error ????</p>
  
  <p>[data.txt contains raw data in following format]</p>
  
  <p>1</p>
  
  <p>2</p>
  
  <p>3</p>
  
  <p>4</p>