为什么C++打开不存在的文件,执行程序后却发现该处自动生成了一个文件
代码如下:#include<iostream.h>#include<fstream.h>#include<stdlib.h>void main(){ fstream infile,outfile; infile.open("d:尀尀test1.txt",ios::in); if(!infile) { cout<<"test1打开失败尀n"<<endl; //abort(); } outfile.open("d:尀尀test2.txt",ios::app); if(!outfile) { cout<<"test2打开失败尀n"<<endl; //abort(); } char ch; while(infile.get(ch)) outfile.put(ch); infile.close(); outfile.close();}