【发布时间】:2019-07-17 04:47:36
【问题描述】:
那么我怎样才能要求用户向我提供一个输入文件和一个输出文件呢? 我希望用户提供的输入文件中的内容打印到用户提供的输出文件中。在这种情况下,用户会输入这个
Enter the input file name: copyFrom.txt
Enter the output file name: copyTo.txt
输入文件中只有文本"hello world"。
谢谢。请尽可能保持简单
【问题讨论】:
-
这个答案可能是常见问题stackoverflow.com/questions/123198/…的重复。