V.3.1
clsFileIni

This class permits you to manage UNICODE .ini files; very useful for multi-language applications; it uses Standard Windows Unicode API and supports UNC paths.

Methods:
GetSectionNames Gets an array containing the sections of a .ini file
GetSectionRowKey / GetSectionRowValue Gets the key or value of a row obtained using the GetSectionRows function
GetSectionRows Gets an array containing the lines of a sections
ReadBool/WriteBool Reads/Writes a boolean into file
ReadString/WriteString Reads/Writes a string into file
clsFileIniEx

This class, like the previous one permits you to manage Unicode .ini files. Every Windows API function has been remade so it is able to read UTF8, Unicode UTF16 and ANSI .ini files.
It is possible to use characters like spaces, ", etc... and you can avoid the use of sections.
It is possible to read files up to 5 Mb.

Properties/Methods:
AddString / AddBool adds/updates a value to the file
AllowTabs Permits the use of Tabulators, Spaces into the file
CommentChar Permits the use of comments, ignores lines starting with this character
GetBool Gets a boolean from the file
GetSectionNames Gets an array containing the sections of a .ini file.

PS. this class supports also files with no sections so when using this function a blank section is always returned
GetSectionRowKey / GetSectionRowValue Gets the key or value of a row obtained using the GetSectionRows function
GetSectionRows Gets an array containing the lines of a sections
GetString Gets a certain string from the file
IniFile Gets/Sets the .ini file name
KeyValueSepChar Permits you to change the character used for separing the Key from the Value (default is =)
Load Loads a certain .ini file
Save Saves the modified file
http://www.hexagora.com
Thu, 22 Sep 2011 17:54:35 UT
Copyright 2003-11 by Lorenzi Davide