我的程序里有比较多层的循环,每层循环中都输出到文件result.xls,使用的命令是“outreg2 using result.xls,p append”,每次程序运行到中途时都会出错,提示:file result.txt could not be opened 或者是 file result.xls could not be opened。出现这个问题时,还经常伴随着 result.txt 或者result.xls 文档的丢失。
但是出错的位置不是固定的,因为我找到已经输出的 result.xls 或者 result.txt ,发现其中包含的回归结果的数目每次都不一样。
请教大侠们,这是怎么回事啊?
谢谢!!