public static char [ ] readUTFChars ( final File file ) throws IOException { checkExists ( file ) ; checkIsFile ( file ) ; UnicodeInputStream in = unicodeInputStreamOf ( file ) ; try { return StreamUtil . readChars ( in , detectEncoding ( in ) ) ; } finally { StreamUtil . close ( in ) ; } }
Reads UTF file content as char array .