62,620
社区成员
发帖
与我相关
我的任务
分享
PrintStream ps=new PrintStream(new File("f:/test.txt"));
ps.println("游戏开始!");
File f = new File("");
FileOutputStream fos = f.getOutputStream();
DataOutputStream dos = new DataOutputStream(fos);
try {
PrintStream ps = new PrintStream(new File("x:/info.log"));
ps.println("test.");
} catch (FileNotFoundException e) {
e.printStackTrace();
}
PrintStream ps = new PrintStream (System.out);
ps.println("哈哈");