摘要:
// FileOprator.cpp : Defines the entry point for the application.//本程序演示了,文件的创建、写入、读取、复制、更名、删除的操作!#include "stdafx.h"#include "resource.h"#include <winbase.h>#define MAX_LOADSTRING 100// Global Variables:HINSTANCE hInst;// current instanceTCHAR szTitle[MAX_LOADSTRING];// Th 阅读全文
摘要:
1.创建、读写和撤销文件第一套方案:HANDLE CreateFile(LPCTSTR lpFIleName,DWORD dwDesiredAccess,DWORD dwSharesMode,LPSECURITY_ATTRIBUTES lpSecurityAttributes,DWORD dwCreationDiposition,DWORD dwFlagsAndAttributes,HANDLE hTemplateFile);//创建、打开或者截断一个文件,并返回一个能被用来存取该文件的句柄。此句柄允许读数据、写数据、移动文件的指针。DWORD SetFilePointer(HANDLE hF 阅读全文