Scheme Programming/TinyScheme

TinyScheme is a lightweight Scheme interpreter of a subset of the R5RS standard. It is meant to be used as an embedded scripting interpreter for other programs. Much of the functionality in TinyScheme is included conditionally, to allow developers to balance features and size/footprint.

TinyScheme is used by GIMP starting with version 2.4, released in 2007. GIMP previously used SIOD.

TinyScheme was used as the core of Direct Revenue's adware, making it the world's most widely distributed Scheme runtime.

Saving a textfile
The last line is especially important as elsewise the file would not be closed and could not be modified by other programs until e.g. GIMP is closed