@SuppressWarnings("unused")
public static void main(String[] args) throws IOException {
FileInputStream fis = new FileInputStream("exercise.txt");
byte[] bys = new byte[5];
int len = 0;
while ((len = fis.read(bys)) != -1) {
System.out.print(new String(bys));
}
}
|
|