I have text file that was encoded with UTF8 (for language specific characters).
I need to use RandomAccessFile to seek specific position and read from.
RandomAccessFile raf = new RandomAccessFile( ... );
String line;
while ((line = raf.readLine()) != null) {
String utf = new String(line.getBytes("ISO-8859-1"));
...
}
// my file content has been created with:
raf.write(myStringContent.getBytes());