although you should get the hang of reading and writing to files with stdio.h first, for storing simple preferences you should check out swell-ini.cpp in WDL which allows you to use the windows WritePrivateProfileString / GetPrivateProfileString methods on OSX to read/write a .ini file . That is what i am using for global preferences in my latest plugin. The WDL-OL standalone app wrapper uses it to store info about the audio interface etc.
|