mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 22:20:54 +07:00
17 lines
403 B
Java
17 lines
403 B
Java
import java.io.File;
|
|
import java.io.FileInputStream;
|
|
import java.io.IOException;
|
|
|
|
class C {
|
|
void m(File file) throws IOException {
|
|
try (FileInputStream fileInputStream = new FileInputStream(file)) {
|
|
int read;
|
|
do {
|
|
read = fileInputStream.read();
|
|
System.out.println(read);
|
|
}
|
|
while (read != -1);
|
|
}
|
|
}
|
|
}
|