#include <iostream>
#include<fstream>
using namespace std;
int main()
{
ofstream ofs;
ofs.open("C://Users/Administrator.DESKTOP-O3I63TK/Desktop/3.10/weben.txt",ios::out);
//判断是否打开
if(ofs.is_open())
{
cout<<"打开成功"<<endl;
}
else {
cout<<"打开失败"<<endl;
}
ofs<<"我的"<<endl;;
ofs<<"你的"<<endl;
ofs.close();
return 0;
}