public class ExamTest9 {
//@SuppressWarnings("unused")
public static void main(String[] args) throws IOException {
FileInputStream fis = new FileInputStream("E:\\a.java");
byte[] bys = new byte[5];
int len = 0;
while ((len = fis.read(bys)) != -1) {
System.out.print(new String(bys));
}
}
} |
|