import java.io.*;
class Test10_6
{  
   public static void main(String args[])
   {  
   	 int b;
      byte buffer[]=new byte[100];
      try
      {  
         System.out.println("һı,");
//ѴӼַ buffer
         b=System.in.read(buffer);	  
         FileOutputStream writefile=new FileOutputStream("a.txt");
 // ͨbuffer д뵽ļ a.txt
         writefile.write(buffer,0,b);	  .
      }
      catch(IOException e)
      { 
      	 System.out.println("Error ");
      }
   }
}
