Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum CONFIG_VALUES : int{
- PAIRSCOUNT,
- PORT,
- SOME_OTHER_SHIT_EXAMPLE
- }
- string[] config = File.ReadAllLines("config.ini");
- int COUNT_PAIRS = int.parse(config[CONFIG_VALUES::PAIRSCOUNT]);
- int PORT = int.parse(config[CONFIG_VALUES::PORT]);
- string AN_EXAMPLE= config[CONFIG_VALUES::SOME_OTHER_SHIT_EXAMPLE];
- Config.ini:
- 999
- 1904
- I'm a string!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement