This examples explains the use and the manipulation of INI files, special text files which are used to store simple in-game information, i.e. initialization settings for your game.
This was made in GM8, so it's not compatible with Game Maker 7.

Ratings

General Rating

Your Rating*

Images

Saving and loading data

This window shows the result of writing and reading data to and from an INI file. The returned information is shown in the title-bar at the top.

Using multiple INI files

You can't open more than one INI file at once, this would result in uncertain results (which of the files is written to or read from?). This messagebox proves that the data is only written to and retrieved from the last opened file.

* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.