Skip to content

INI reader that works like GetPrivateProfileString/WritePrivateProfileString but with a lot better performance

License

Notifications You must be signed in to change notification settings

simonwarn/INIReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

INIReader

INI reader that works like GetPrivateProfileString/WritePrivateProfileString but with a lot better performance

file

[User1]
Age=31
Name=mikael tratt
[User2]
Age=18
Name=sara larsson

Example

int main()
{
	INIREADER INI;
	if (INI.SaveFile("C:/Users/Public/test.ini")) // Save to file
	{
		INI.WriteString("User1", "Age", "31");
		INI.WriteString("User1", "Name", "mikael tratt");

		INI.WriteString("User2", "Age", "18");
		INI.WriteString("User2", "Name", "sara larsson");

		INI.Close();
	}

	if (INI.OpenFile("C:/Users/Public/test.ini")) // Load from file
	{
		std::cout << INI.GetString("User1", "Age") << std::endl;
		std::cout << INI.GetString("User1", "Name") << std::endl;

		std::cout << INI.GetString("User2", "Age") << std::endl;
		std::cout << INI.GetString("User2", "Name") << std::endl;

		INI.Close();
	}
}

About

INI reader that works like GetPrivateProfileString/WritePrivateProfileString but with a lot better performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages