title: readLine() method returns empty String, BufferedReader
body: <p>I'm executing java code. <code>readLine()</code> method returns an empty string from a text file even when there is text in the file.</p>
  <pre><code>BufferedReader csv =  new BufferedReader(new FileReader(&quot;D:/SentiWordNet_3.0.0/home/swn/www/admin/dump/senti.txt&quot;));
  String line = &quot;&quot;;      
  while((line = csv.readLine()) != null){ 
      String[] data = line.split(&quot;\t&quot;);
      Double score = Double.parseDouble(data[2])-Double.parseDouble(data[3]);
  }
  </code></pre>
  <p>After the <code>split()</code> is called, there is an exception thrown <code>Arrayindexoutofboundsexception</code>.<br>
  Below is the text file. Each line starts with <code>&quot;a&quot;</code> followed by a number. the code was able to retrieve the line with the word apocrine, but not the line with word eccrine. when I ran in debug mode, the line variable returned as empty string.</p>
  <blockquote>
  <p>a  00098529    0   0   apocrine#1  (of exocrine glands) producing a secretion in which part of the secreting cell is released with the secretion; &quot;mother's milk is one apocrine secretion&quot;</p>
  <p>a  00098736    0.25    0   eccrine#1   (of exocrine glands) producing a clear aqueous secretion without releasing part of the secreting cell; important in regulating body temperature</p>
  <p>a  00098933    0   0   artesian#1  (of water) rising to the
  surface under internal hydrostatic pressure; &quot;an artesian well&quot;; &quot;artesian pressure&quot;</p>
  </blockquote>
  <p>Should I use someother construct to read the lines from the text file</p>