How to delete the specified line of a file in C++ on CUI condition.
摘要: 答友問 @守伊兒
本文主要講如何 刪除和替換 文件中的指定行的內容
本文是使用標準c++而不是用MFC 中CFile實現
主要涉及到C++文件操作,字符串處理,調整文件指針等
閱讀全文
posted @
2012-05-19 18:08 demons 閱讀(2607) |
評論 (0) 編輯
Redirect the stream buffer of cout to a file with ios::rdbuf()
摘要: 本文主題: IO 重定向, 主要分以下三部分:
1. 在c++中如何給io類流重定向.
2. 如何用一個cout 輸出整個文件內容.
3. 找出cout ,cin ,cerr 的真身,定義自己的輸入輸出對象
閱讀全文
posted @
2012-05-11 12:20 demons 閱讀(2979) |
評論 (0) 編輯