<分区>
Possible Duplicate:
Delete a Line from a file in C Language
In C++, what is the proper way to insert a line at the beginning of a text file?
如何使用c/c++编程在文件开头添加数据? 我试过以下代码:
fstream file;
stmt.open(L"d:\\xyz.txt",ios::in|ios::out|ios::app);
但这是附加在文件末尾。