#include<iostream>
#include<windows.h>
#include <fstream>
void main(){
std::ofstream m_filestream ;
std::ostream &os = m_filestream;
m_filestream.open("test.txt",std::ios::app);//打开文件test.txt,如果不存在则会创建。
os<<"xx11";
m_filestream.close();
system("pause");
}