Many of the related function parameters of a file operation are pointer types that point to constants.
Pointer to constant: (indicates that the object being pointed to is a constant) the pointer points to the address of a constant, which cannot modify the constant value through the address.
Pointer constants: (The pointer itself [address] is a constant) pointer value is not modifiable, the point of the content can be modified.
Char ch[5]= "list";
char* const PSTR = ch;
The C language file operation uses the file structure body.
Used in C + +: Ofstream ().
Win32 API platform for file operation support: File Operation CreateFile, you can create or open file, disk, pipe data.
Support for file operations in MFC: CFile is the MFC base class and does not support buffering.
Win32-based applications, you should store program information in the registry. You can use Cwinapp::writeprofilereg to add key values in the registry.
MFC read-Write files