INI Reader and Writer |
INI Reader and Writer
This wizard can generate a Pascal or C++ unit from an INI file for reading and writing. Its dialog is as below:
INI File: You can select an INI file here.
Const Prefix: Some constant will be generated in unit to represent the Sections and Names in the INI file. Section constant uses 'Prefix + Section Name'. Name cnstant uses 'Prefix + Section Name + Name'. This option is to set the Prefix. Default is 'csIni'.
ClassName: A class and an instance will be generated in unit to read and write the INI file. This option is to set the classname without T. Default is 'IniOptions'.
Auto Detect Type of Items in INI File: If this was selected, this wizard will judge the types for each item in INI file, otherwise treat them as string. Supported types include String, Integer, Float, DateTime and Boolean.
Treat 0 and 1 as Boolean Type.If this was selected, this wizard will treat 0 and 1 item in INI as Boolean type, otherwise as Integer.
Both Delphi and C++Builder are supported. In BDS 2006, language type will be judged automatically, if can NOT, a message box will be poped up to let user choose language. In BDS 2005/2006, unit must be saved before generating.
Links