in/out 读写
app 在每次写之前找到文件尾
ate 打开文件后立即将文件定位在文件尾
trunc 打开文件时清空已存在的文件流
ofstream outfile("file",ios::out| ios::app);
in/out 读写
app 在每次写之前找到文件尾
ate 打开文件后立即将文件定位在文件尾
trunc 打开文件时清空已存在的文件流
ofstream outfile("file",ios::out| ios::app);