//Exam080105.java
import java.io.*;
public class Exam080105{
	public static void main(String args[]){
		try
		{
			System.out.print("һַ: ");
			int count,n=512;
			byte buffer[] = new byte[n];
			FileOutputStream fout = new FileOutputStream("Output.txt");
			count = System.in.read(buffer);
			fout.write(buffer,0,count); //д
			fout.close(); //ر
			System.out.println("ַѱ浽Output.txt!");
		}
		catch (IOException ioe)
		{
			System.out.println(ioe);
		}
		catch (Exception e)
		{
			System.out.println(e);
		}
	}
}
