请问大牛为什么我在E盘找不到test,txt文件,,我明明在程序中创建了
#include<iostream>#include<fstream>
using namespace std;
int main()
{
ofstream fcout("E:test.txt");
if(!fcout)
cout<<"文件创建失败\n";
fcout<<"ABCDFEHGKLMNOPQYSTUVWXYZ1234567890";
fcout.close();
char ch[]="123456789abcdefgh";
fstream ffcout;
ffcout.open("E:test.txt");
if(ffcout.fail())
cout<<"打开文件失败\n";
ffcout.seekp(9,ios::beg);
ffcout<<ch;
ffcout.close();
ifstream fcin("E:test.txt");
if(fcin.fail())
cout<<"文件打开失败\n";
char temp;
while(fcin.get(temp))
{
cout<<temp;
}
fcin.close();
return 0;
}