public static char [ ] readChars ( final File file , final String encoding ) throws IOException { checkExists ( file ) ; checkIsFile ( file ) ; InputStream in = streamOf ( file , encoding ) ; try { return StreamUtil . readChars ( in , encoding ) ; } finally { StreamUtil . close ( in ) ; } }
Reads file content as char array .