void open(const char *filename,ios::opnemode mode);
ofstream outfile;
outfile.open("file.data,ios::out|ios::trunc);
文件指针
seekg("seek get")
seekp("seek put")
ios::beg begining of a stream
ios::cur current position in a stream
ios::end end of a stream