Code:FileInputStream in = new FileInputStream("C:\\andmed.txt");
final int BUFFER_SIZE = 8;
int off = 0;
int actualBytesRead = 0;
byte[] buffer = new byte[BUFFER_SIZE];
while ((actualBytesRead = in.read(buffer, 0, BUFFER_SIZE)) != -1) {
off += actualBytesRead -1;
System.out.println(Arrays.toString(buffer));
}
