Skip to content
Portable, single-file, config library with config file generation based on a template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is a header-only library, as such most of its functional documentation is contained within the "header section" of the source code in the form of comments. It is highly recommended that you read said documentation before using this library.


The lconfig library provides basic config file generation based on a template, its features include:

  • No hard dependencies besides the standard library, making it fully portable for most purposes
  • Provides int and string config parameters, enough for the most common types of values
  • Works even when the OS blocks file access, in which case it will simply use defaults
  • Small enough for simple demo programs, powerful enough for full applications


You are not required to give attribution when using this library. If you want to give attribution anyway, either link to this repository, my website, or credit me as BareRose. If you want to support me financially, consider giving to my Patreon.


Licensed under CC0 aka the most lawyer-friendly way of spelling "public domain".

You can’t perform that action at this time.