Add `writeIniFile` example

This commit is contained in:
Elias Batek 2025-02-14 04:24:13 +01:00
parent 007a637559
commit 7e793993b9
1 changed files with 9 additions and 0 deletions

9
ini.d
View File

@ -18,6 +18,15 @@
}
---
---
import arsd.ini;
void writeIniFile(string filePath, IniDocument!string document) {
import std.file : write;
return write(filePath, stringifyIni(document));
}
---
### On destructiveness and GC usage