import java.io.*;
public class IOExceptType {
public static void main (String[] args) {
  FileInputStream f_in = null;
  File fname = new File("c:\\ByteData.txt");
    try {
      f_in = new FileInputStream(fname);
      System.out.println("Read Data from File : "
              + fname);      
      int c;
      while ((c = f_in.read()) != -1)
        System.out.println(c);      
    }
    catch (IOException e){
      System.out.println(e+"\nหมายถึง \"ข้อผิดพลาด"
             + "ที่เกิดจากไม่พบไฟล์ข้อมูลที่ต้องการ\"");
    }
  }
}