Function writestruct

Store a structure to file

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

Input: