Files
2015-06-19 13:44:33 +03:00

16 lines
349 B
Java

import java.io.FileInputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
class C {
void m(File file) throws IOException {
int x;
FileChannel ch;
try (FileInputStream stream = new FileInputStream(file)) {
ch = stream.getChannel();
}
ch.close();
x = 0;
}
}