Hello, I am Sun Guangdong. Reprint Please specify source: http://blog.csdn.net/u010019717More full content Please see my game bull's address: http://www.unitymanual.com/space-uid-18602.html??Ini filesThis library can handle INI files. Note that the file can be any extension (such as. txt) as long as the contents of the file are in the correct format.[player]name=arnoldavatar=2; This section stored hi-scores
Directly # find-namephp.ini can not be found, because the installation of php does not copy the configuration file php version changes after the ini file name has changed php. ini-production corresponds to php. ini-recommendedphp.ini-development corresponds to php. what are the differences between ini-dist? Due to vers
C # usually uses an xml-based configuration file, but if necessary, such as taking care of older systems, you might want to use the INI file.
But C # itself does not have the API to read and write the INI file, only by invoking unmanaged code, the system's own APIs to achieve the desired purpose.
The corresponding methods for reading and writing are getprivateprofilestring and writeprivateprofilestring re
Design Requirements:
The format of the INI file is generally as follows:
[section1] key1=value1 key2=value2 ...... [section2] key1=value1 key2=value2 #注释 ......
The actual examples are:
#ini for path [path] dictfile = /home/tmp/dict.dat inputfile= /home/tmp/input.txt outputfile= /home/tmp/output.txt #ini for exe [exe] user= winter //user name passwd= 12
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 be assigned a corresponding value. Reading and writing an INI file is
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 inifiles (unit) // -- when the form is created, read the INI file information procedure tfrmafn04h_f9.formcreate (Sender: tobject); var vfini: Tinifile; sfilenam
I used to send a module to read and write INI files. Now I want to send a DLL to read and write INI files, so that you can use other languages to read and write INI files. For detailed usage instructions, see the readme.txt file. When writing software, it is very convenient to put some parameters into the INI file. I o
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 provided by it to open and save files. If you use a self-compiled function to open and save files, your program bypasses its documents, the latest file will not be available.
② This kind of recent file is stored in the registry, which is difficult to clear
This article illustrates the method of reading a configuration file in C + + with an example.
In general, we like to use the INI extension file as a configuration file, you can read and modify variable values, you can set up a new group, a new variable, the example code of this article is to read the INI definition file, the other is the Cinifile class implementation file, the combination of the two, the p
Although after entering the Win95, the general read-write INI file was replaced by the read and write registry, but we can still read and write the INI file through the Win31 traditional way, to save the current program related settings, and the next time the program is executed to read back. It is currently recommended that GetSetting SaveSetting be used in registry, not in the current way. The setup of th
From: http://blog.csdn.net/kenny9931/archive/2007/06/18/1656805.aspx
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 writing an INI file is actually the value of the cor
In-depth understanding of ini configuration in php (2), in-depth understanding of ini. In-depth understanding of ini configuration in php (2), in-depth understanding of ini, continue to the previous article. 1. changing the configuration during runtime I mentioned in the previous article that the ini_set function can d
Parse ini configuration file ---- INIParser, Unity ---- iniparser in unity
Hello everyone, I am Sun Guangdong. Reprinted please indicate the source: http://blog.csdn.net/u010019717
More comprehensive content please see my game pretty cool address: http://www.unitymanual.com/space-uid-18602.htmlIni files
This library can process INI files. Please refer to the extension name of the file (for example, .txt) as
INI file format is generally composed of section, key, value three partsFormat:[first section ]First key = valueSecond key = second value[section II ]First key = Val1,val2,val3Example:[COM]Kinggoo = kinggoo.comIn fact, this role is not so particularly large, but multiple shells if each configuration information in the shell file is written, understand the person is OK, half understand + not careful how people want to change, several places to estimate
Get a string from an. ini file
Var
Strresult:pchar;
Begin
GetPrivateProfileString (
Name of the title in ' Windows ',//[]
' Nullport ',//= before the name
' NIL ',//If the string is not found, the default value returned
Strresult,//Store get character
100,//Get maximum allowable length of character
' C:forwin95win.ini '//called filename
);
Edit1.text:=strresult; Show Get string
Get an integer from an.
In C # Read and write the INI file a piece of code, in fact, this article just pointed out a direction, I hope we can analogy.
The following is the full code:
Write INI file[DllImport ("kernel32")]private static extern bool WritePrivateProfileString (string section, string key, String val, string filePath);Read INI file (character[DllImport ("kernel32")]private s
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 write INI files. Among them, operations on INI files in Delphi are the most concise, Because delphi provides a Tinifile class, this allows us to process
An INI file is a file with the extension "ini. In Windows, there are many INI files. The most important ones are system. ini, system32.ini, and win. ini ". This file mainly stores user selection and various system parameters. You
[Online, etc.] in ubuntu XAMPPphp. ini, enabling mongodb extension PHP files always fails to be parsed !!! This post was last edited by gdf87521 from 2013-01-0923: 36: 10 and copied from the official mongodb nbsp; configuration file. after the configuration is complete, restart lampp nbsp; and access nbsp; localhost always pops up a download dialog box [online, etc.] XAMPP php under ubuntu. failed to par
Desktop. ini, folder icon, folder background, hidden files, Viruses
Some viruses may create a desktop. ini file in the folder. At present, many friends have incorrect ideas about this file and think it is a virus file. This is actually wrong,
Desktop. ini is not a deep source of viruses. desktop. ini is a file
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.