Function writestruct

Store a structure to file

Saves a single level structure to a text file in an INI-like format.

Input: