MFC:
CFile类提供Read,Write,Seek,SeekToBegin,SeekToEnd,GetLength函数
Win32:
CreateFile(创建或打开文件),ReadFile,WriteFile
C++:
向文件中写入数据:ofstream
读取文件数据:ifstream
文件操作,布布扣,bubuko.com
文件操作
原文:http://www.cnblogs.com/xiaoxiaocaicai/p/3595368.html