1,只能用于输出或write、OutputStream
字节流
PrintStream ps = new PrintStream(new FileOutputStream("..\\IOstream\\print"));
ps.print("宝,我好爱你啊");
ps.println("我也是");
ps.printf("%s 爱上的 %s","陈","陈");//打印带占位符
ps.close();
字节流
1,只能用于输出或write、OutputStream
字节流
PrintStream ps = new PrintStream(new FileOutputStream("..\\IOstream\\print"));
ps.print("宝,我好爱你啊");
ps.println("我也是");
ps.printf("%s 爱上的 %s","陈","陈");//打印带占位符
ps.close();
字节流