C++對文件的操作

1. 文件寫入: #include <fstream> using namespace std; void main() { ofstream out; //創建一個文件輸出流 out.open("C:\\123.txt"); //輸出到文件 out << "鋤禾日當午,汗滴禾下土。" << endl; out.close(); syste
相關文章
相關標籤/搜索