Files
openide/java/java-tests/testData/codeInsight/surroundAutoCloseable/Usage.java
2012-11-04 21:32:10 +01:00

16 lines
369 B
Java

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
class C {
void m(File file) throws IOException {
<caret>FileInputStream fileInputStream = new FileInputStream(file);
int read;
do {
read = fileInputStream.read();
System.out.println(read);
}
while (read != -1);
}
}