q***z 发帖数: 543 | 1 现在要运行一个loop,分成好多段,每一段执行后都往文件里写数据,请问如何才能接
着以前的往下写.谢谢!! | T*********r 发帖数: 11175 | 2 what language?
in fortran, u need to define the data file and open it first
then write to it
open(77,status="old",file="urdata.dat")
at the end of calculation use
write(77,*) ur x, ur y
this 77 is just an example, u can use other number
but better choose something greater than 20
【在 q***z 的大作中提到】 : 现在要运行一个loop,分成好多段,每一段执行后都往文件里写数据,请问如何才能接 : 着以前的往下写.谢谢!!
| x*********l 发帖数: 594 | 3 C里面只要你中间不关闭文件,调用文件指针,就是接着写的。
【在 T*********r 的大作中提到】 : what language? : in fortran, u need to define the data file and open it first : then write to it : open(77,status="old",file="urdata.dat") : at the end of calculation use : write(77,*) ur x, ur y : this 77 is just an example, u can use other number : but better choose something greater than 20
|
|