title: BufferedReader offset into file contents
body: <p>I want to get the characters of a file and I know that the first 128 bytes are garbage and the next 4 give me important details.</p>
  
  <p>Currently I am doing this:</p>
  
  <pre><code>    br = new BufferedReader(new FileReader(path));
      char[] cbuf = new char[133]; 
      br.read(cbuf, 0, 132);
      String importantDetails = "";
      for(int i=128;i&lt;132;i++) importantDetails += cbuf[i];
  </code></pre>
  
  <p>But I feel that it is a really ugly way to do it, first I tried:</p>
  
  <pre><code>    String importantDetails = cbuf.toString().substring(128); 
  </code></pre>
  
  <p>Which gives an error (String index out of range: -118).
  While just the <code>cbuf.toString()</code> prints <code>[C@d70c109</code>.</p>
  
  <p><strong>Is there a better way to accomplish this in java?</strong></p>
  
  <p><em>I feel that there should be a offset in the file (because the offset of the read(cbuf[],offset,length) is the offset in the cbuf[] and not in the file to be read.</em></p>