Author Topic: INI-Manager library  (Read 3393 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
INI-Manager library
« on: March 17, 2019, 11:53:32 am »
I have just updated my INI-Manager library. Here it is if you guys want to check it out:

Project page on GitHub: https://github.com/FellippeHeitor/INI-Manager
Direct download: https://github.com/FellippeHeitor/INI-Manager/archive/master.zip

Sample usage:
Code: QB64: [Select]
  1. WriteSetting "test.ini", "[user]", "name", "Fellippe"
  2. WriteSetting "", "[user]", "last name", "Heitor" 'file name can be omitted if it's the same previously used
  3.  
  4. result$ = ReadSetting$("", "user", "name") 'section names don't need square brackets
  5. PRINT result$
  6.  
  7. '$include:'ini.bm'

The above will generate this sample "test.ini" file:
Code: QB64: [Select]
  1. [user]
  2. name=Fellippe
  3. last name=Heitor

More details at the project's page above.