This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一个长时间运行的代码,每分钟输出一次东西。我将整夜运行它,并在早上检查结果。
有没有办法将所有控制台内容写入外部文本文件。我不想修改代码,只是希望将所有控制台输出定向到外部文件。我在 Eclipse 中工作。我尝试了 Run -> Run Configurations... -> Your Application -> Common tab -> File idea 但输出很糟糕 - 没有换行符。