149ea16f5c
#KT-4488 Fixed
19 lines
396 B
Java
19 lines
396 B
Java
//file
|
|
import java.io.*;
|
|
|
|
public class C {
|
|
void foo() {
|
|
try(InputStream stream = new FileInputStream("foo")) {
|
|
// reading something
|
|
int c = stream.read();
|
|
System.out.println(c);
|
|
}
|
|
catch (IOException e) {
|
|
System.out.println(e);
|
|
}
|
|
catch (Exception e) {
|
|
System.err.println(e);
|
|
}
|
|
}
|
|
}
|