A GNU Guile library for working with INI format.
Guile-INI is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version. Please see COPYING
file for the terms of GNU General
Public License.
This program reads an INI data from the standard input, converts it to a scheme list and then converts it back to INI data:
#!/usr/bin/guile \ -L modules -e main -s !# (use-modules (ice-9 pretty-print) (ini)) (define (main args) (let ((data (ini->scm (current-input-port)))) (pretty-print data) (scm->ini data (current-output-port))))