标签: file printing io fortran
因此,假设我在file1.txt中打开了unit=5,同时在file2.txt中打开了unit=6。然后我打电话给print *, "something"。现在看来,"something"不会被打印为输出,而是会写入第二个文件。为什么会发生这种情况,我该如何避免呢?
file1.txt
unit=5
file2.txt
unit=6
print *, "something"
"something"
谢谢!