#include<iostream>
#include<fstream>
using namespace std;
int main()
{
//**************** 写入文件 ****************
ofstream output;
//打开一个文件,如果文件已经存在,销毁重新创建。
output.open("numbers.txt");
output << 95 << " " << 56 << endl;
output.close();
}
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
//**************** 读取文件 ****************
ifstream input;
//打开一个文件
input.open("number.txt");
int score1;
int score2;
int score3;
input >> score1;
input >> score2;
input >> score3;
input.close();
}