c++ io操作

void open(const char *filename,ios::opnemode mode);

c++ io操作_第1张图片
操作描述符
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

你可能感兴趣的:(c++ io操作)