摘要:
import java.io.*;public class BufferOutputDemo { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub byte buf[]=new byte[255]; System.out.println("请输入要创建文件名(用/分格):"); try { System.in.read(buf,0,255);//read()方法会抛出异常 String FileName=new String(buf 阅读全文