INI is a file with the extension "INI". In fact, INI is a text file. It can work in notepad and mainly stores user choices or various system parameters.
The INI file is not a common text file. it has its own structure. it consists of several
INI is a file with the extension "INI". In fact, INI is a text file. It can work in notepad and mainly stores user choices or various system parameters.The INI file is not a common text file. it has its own structure. it consists of several sections.
When developing the interface program, the IP address, port and so on of the interface program configuration need to be configurable, and in the win API native implementation of INI file read and write operations, so only need to call the method in
This article illustrates several ways to create a configurable PHP application. The ideal configuration point in the application is also discussed and a balance is sought between the application being overly configurable and overly closed.If you
The information in this article applies:Product: Knowledge ExchangeVersion: 6.1.xIssue
How do I configureKrb5.ini?
Resolution
The following file is used as a sample:[libdefaults]default_realm=TESTSERVER.COMdefault_tkt_enctypes=rc4-hmac
// Select Project first | the Project setting command dialog box under the setting command, and select Use MFC in a Shared DLL under Microsoft Foundation Classes
# Include
# Include
// # Include
# Define MAX_ALLSECTIONS 300 // defines the
Preparation:
The newly created document (.txt) is changed to. ini to open the write
[Settings]TEXT =R =255G =255B =255
Referenced API structure:[System. runtime. interopservices. dllimport ( " Kernel32 " )] Private Static Extern Long
The common boot. ini format is as follows:
[Boot loader]Timeout = 10Default = multi (0) disk (0) rdisk (0) partition (2) \ WINXP[Operating systems]Multi (X) disk (Y) rdisk (Z) partition (Q) \ WINXP = "Microsoft Windows XP
1. In XAMPP ext, two additional two extension files connected to SQL Server, Php_sqlsrv_56_ts.dll and Php_sqlsrv_56_nts.dll, and then added two sentences to the php.ini file.
2.XAMPP will report an error,
3. How should I solve this problem?
Bool writeprivateprofilestring (Lptstr lpappname, // section nameLptstr lpkeyname, // key nameLptstr lpstring, // string to addLpctstr lpfilename // Initialization File);Lpstring[In] pointer to a null-terminated string to be written
Very similar to Java properties fileXML file
Copy Code code as follows:
Db_config.ini
[Baseconf]
host=127.0.0.1
port=3306
User=root
Password=root
Db_name=evaluting_sys
[Concurrent]
Processor=20
The
C # Help class for operating the ini configuration filePublic class IniFile{Public string path;[DllImport ("kernel32")] Private static extern long WritePrivateProfileString (string section, string key, string val, string filePath ); [DllImport
Very similar to the Java properties file
XML file
Copy CodeThe code is as follows:
Db_config.ini
[Baseconf]
host=127.0.0.1
port=3306
User=root
Password=root
Db_name=evaluting_sys
[Concurrent]
Processor=20
The corresponding Python code
Copy
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.