Hi guys, <br /><br />I am looking for a way to parse through a file in a custom fashion, particularly for storing my game's current settings. <br /><br />Right now, I am using JSON to store the settings, but since that keeps everything unsorted, this is what my config.ini file looks like.<br />
{&quot;sndFXVolume&quot;:75, &quot;masterVolume&quot;:100, &quot;vSyncEnabled&quot;:true, &quot;displayWidth&quot;:2560, &quot;displayHeight&quot;:1440, &quot;fullscreenMode&quot;:true, &quot;musicVolume&quot;:70, &quot;voiceVoume&quot;:80}
<br /><br />That's not exactly player-readable, and I want it to be more like this in case a player has a problem with the game and needs to change a settings. <br /><br />
<br /><br />Display Width=2560<br />Display Height=1440<br />etc.,...
<br /><br />I'm not able to find much information on parsing through the file, so I was hoping someone here had an idea they would be willing to share!<br /><br />EDIT: To be a little clearer, I know what I need to do is find something like a string.split() method, and tell it to ignore the "=" sign in my example above, so that it only reads the value.<br />