悉野小楼

导航

2013年7月25日

MFC学习 文件操作注册表操作

摘要: c读写文件void CFileView::OnRead(){ FILE *pFile = fopen("1.txt", "r"); /*char ch[100 * 1024]; memset(ch, 0, sizeof(ch)); fread(ch, 1, sizeof(ch), pFile); fclose(pFile); MessageBox(ch);*/ fseek(pFile, 0, SEEK_END); int len = ftell(pFile); char *pBuf; pBuf = new char[len +... 阅读全文

posted @ 2013-07-25 22:16 悉野 阅读(405) 评论(0) 推荐(0) 编辑