Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚在 NetBeans 中运行了一次大规模模拟,然后计算机在我将输出窗口的输出复制到文件之前就崩溃了。
有人知道此输出是否已存储在任何临时文件中,还是永远丢失?
它可以存储在哪里?
非常感谢您的帮助
你是说 System.out 吗?
这样做:
PrintStream out = new PrintStream(new FileOutputStream("output.txt")); System.setOut(out);