Skip to content

Lufzy/Simple-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple config class

How to Load/Save (default config file path : Documents)

string file_name = "settings";

// for Load
Config.Load(file_name); 

// for Save
Config.Save(file_name);

How to Get/Set value

// for set value
Config.SetValue<string>("example", "example text");

// for get value
string Output = Config.GetValue<string>("example");
/*
    Output : example text
*/

Example usage

Config.SetValue<string>("example", "example text");
Config.SetValue<int>("example-number", 256);

Config.Save("settings");

Example usage / Output

alt text

License

MIT

About

A Simple Config class

Topics

Resources

Stars

Watchers

Forks

Languages