The MFC of VC ++ wraps the latest file so that you can implement the menu of the latest file without writing any code. However, this method is also flawed:
① A user program must use a document and view structure and can only use the documents
INI file (initialization file), which usually stores the initialization information of a program. An INI file consists of several sections. Each section consists of several keys, and each key can be assigned a corresponding value. Reading and
In a lot of programs, We will see a file with an. ini suffix, this file can be very convenient to set up and read some of the program configuration information, such as when we do a program background login, need to automatically log in or remote
C ++ INI File
INI files are mostly used for storage.Program. For example, record the name of the database connecting the program, the name of the last user login, and the user registration information.
I. ini file format
[Section1 name]
---- INI files play an important role in system configuration and saving and setting application parameters. Therefore, a Visual Programmer, for example, VB, Vc, VFP, and Delphi all provide methods to read and write INI files. Among them, operations
How to read and write INI files using functions in VC
INI file (initialization file), which usually stores the initialization information of a program. An INI file consists of several sections. Each section consists of several keys, and each key can
Read and write INI file in VC + + Write INI fileCString Path,index;int i;Path= "d:/qc_download/bin_code/teu800_long_sms/";I=1;Index. Format (_t ("%d"), I);:: WritePrivateProfileString (_t ("Successcompath"),index,_t
How to read and write INI files using functions in VC
INI file (initialization file), which usually stores the initialization information of a program. An INI file consists of several sections. Each section consists of several keys, and each key
#ifndef _profile_h_
#define _profile_h_
/**
* Read and write INI file classes
*/
Class CProfile
{
Public
CProfile ();
~cprofile ();
Set INI file name
VOID setprofile (LPCTSTR szininame);
Public
A string that holds the INI file name
TCHAR
INIFILE Management
By clin003 at 20070528 from: http://blog.csdn.net/clin003INI files play an important role in system configuration and saving and setting application parameters, for example, VB, Vc, VFP, and Delphi all provide methods to read and
NI files play an important role in system configuration and saving and setting application parameters. Therefore, Visual Programming, for example, VB, VC, VFP, and Delphi all provide methods for reading and writing INI files. Among them, operations
Delphi reads and writes the INI file instance // -- mainly implements two processes: when the form is closed, the interface information of the file is saved; when the form is created, the program reads the information stored in the file. // -- Uses
We wrote
Program There is always some configuration information to be saved to complete the functions of the program. The simplest way is to write the information into the INI file and then read the information during program initialization. The
INI file is a common configuration file. It is composed of simple text and simple structure. INI file will have a different extension, such as ". Ini.", ". Cfg", ". conf" and so on.INI file formatINI file consists of 3 important parts: parameters
In our program, there are always some configuration information needs to be saved, in order to complete the function of the program, the easiest way is to write this information in the INI file, the program is initialized to read again. The specific
Among the programs we write, there is always some configuration information to be saved to complete the functions of the program. The simplest way is to write the information into the INI file and then read it during program initialization. the
Among the programs we write, there is always some configuration information to be saved to complete the functions of the program. The simplest way is to write the information into the INI file and then read it during program initialization. specific
First, it is necessary to understand the structure of the INI file:
; note
[section name]
Keyword = value
...
The INI file allows multiple subsections, each of which allows multiple keywords, followed by the value of the keyword.
There are three
For the convenience of users and flexibility of the system, most win-dows applications record user choices and system information for various changes in the initialization (INI) file. Therefore, when the system environment changes, you can directly
Php. the INI file is a configuration file of php. If you have not modified the configuration file of php on a windows host. the INI file must be in the same directory as your php installation directory, but it seems to be different in linux. Next I
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.