C++中文件的输入/输出操做

1:ifstream类,从istream 类派生而来,该类的对象用来支持文件的输入; 2:ofstream类,从ostream派生而来,该类的对象用来支持文件的输出; 3:fstream类 ,由iostream派生而来,能够支持文件的输入输出; 文件的写入ios int main() { ofstream ofile; ofile.open("Test1.txt"); if (!ofile)
相关文章
相关标签/搜索