title: BufferedReader reads only 61 bytes
body: <p>i wanna read a 90kb file (which apparently equals approximately 90,000 bytes) using Java's BufferedReader, but it stops after only 61 bytes. The file's alright, I've checked it using an HexEditor.</p>
  
  <pre><code>private ArrayList&lt;byte[]&gt; readAsBytes(String dir, String filename, int lineCount) {
      /** Read file as byte*/
      ArrayList&lt;byte[]&gt; outputArr = new ArrayList&lt;byte[]&gt;();
      try {
          InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream (dir+filename));
          BufferedReader reader = new BufferedReader(inputStreamReader);
  
          if (lineCount == -1) {
              String buf = "";
              buf = reader.readLine();
                  if (buf != null) {
                      outputArr.add(buf.getBytes());
                  }
              }
          else {
              for (int i = 0; i &lt; lineCount; i++) {
                  String buf = reader.readLine();
                  if (buf != null) {
                      outputArr.add(buf.getBytes());
                  }
                  else continue;
               }
          }
      } catch (FileNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }   
  </code></pre>
  
  <p>Can anyone help? Probably kinda simple mistakes, but it I'm starting to get tired...</p>