Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
package de.tutorials;
import java.io.RandomAccessFile;
public class RandomAccessExample {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
RandomAccessFile randomAccessFile = new RandomAccessFile(
"c:/Sonnenuntergang.jpg", "r");
long length = randomAccessFile.length();
randomAccessFile.seek(length - 5);
byte[] buffer = new byte[5];
randomAccessFile.read(buffer);
for (int i = 0; i < buffer.length; i++) {
System.out.println(buffer[i]);
}
}
}