2012年11月26日

JAVA重定向输入输出

摘要: 没什么好说的,直接贴代码了。 1 import java.io.*; 2 import java.util.*; 3 4 public class Main { 5 public static void main(String[] args) throws IOException { 6 System.setIn(new BufferedInputStream(new FileInputStream("ride.in"))); 7 System.setOut(new PrintStream(new FileOutputStream("ride.out". 阅读全文

posted @ 2012-11-26 16:31 leohxj 阅读(2617) 评论(1) 推荐(0) 编辑

导航