Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: Java  |  size: 0.11 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CharBuffer cb = CharBuffer.allocate((int)new File(fileName).length());
  2. br.read(cb);
  3. return new String(cb.array());