//Sample03_01.java import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.io.FileNotFoundException; import java.io.IOException; class Sample03_01{ public static void main(String[] args){ String path = "hello.txt"; File file = new File(path); try { FileInputStream inStream = new FileInputStream(file); InputStreamReader reader = new InputStreamReader(inStream, "UTF-8"); int byteData; while((byteData = reader.read()) != -1) { System.out.print((char)byteData); } reader.close(); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e){ e.printStackTrace(); } } }