package chapter08
import java.io.*;
public class FileInputStreamSimpeUsage {
    public static void main(String[] args) {
	 byte[] buffer=new byte[2056];
      try { 
          FileInputStream fileIn=new
          FileInputStream("src/chapter08/FileInputStreamSimpleUsage.java");
          int bytes=fileIn.read(buffer,0,2056);
           // bufferеݣbyteַַָͣ룬
           // Աȷʾ
          String str=new String(buffer,0,bytes,"gb2312");
          System.out.println(str); // ַ
       }
       catch (Exception e) {// 쳣쳣ϢתΪַ
          String err= e.toString(); 
          System.out.println(err); //쳣Ϣ
       }
    }
}
