This is an archive. | |
See the new ClickWiki at https://clickwiki.github.io. This version is just an archive for the purposes of migrating content to the new structure. |
INI
Author | Clickteam |
Status | Released |
Release Date | 2006 |
Available for | |
Supported Runtimes | (Unknown) |
License | Free |
Attributes | |
Download | |
---|---|
Includes Examples | Yes |
Includes Help Files | Yes |
Links | Included by default. |
Alternates | INI++ Object |
The INI object is a cross-platform extension for storing simple values, strings as well as positions of active objects. The common file format is derived from Microsoft Windows, and generally uses the .ini extension.
Properties
Specify a file name of the INI you'd like to use. Traditionally, the INI will be created in the Windows directory. However, starting with Windows Vista, this is not feasible due to User Account Control preventing files from being modified in system folders. As a result, there is now a checkbox to Create INI file in Application Data folder which is checked by default and recommended. You can access the Application Data folder (called AppData starting with Windows Vista and up) by typing into Windows Explorer, Run or the Start Menu: %appdata%
Starting with Fusion 2.5 (or with the Unicode exporter for MMF2), you can choose to use UTF-8 encoding.
Advantages
- Easy to read format.
- Can store as much or as little data as you need.
- Available on most platforms.
Disadvantages
- Slower loading/saving times compared to other objects.
- Difficult to use in loops
- Cannot count groups/items or retrieve the Nth item.
- File size overhead when compared to other objects.
- Does not store in memory - data is loaded/saved directly from disk
Limitations
- Older versions of Windows have a 64 kB file size limit (1024 characters)
Further Reading
Here is some links around the web: