Here's my situation: I'm using SimpleIni to open a settings.ini file, but in some cases this file might not exist. If it doesn't exist, then I want to create it. Here's the thing, though, I need this file to be in the user directory, not the install directory. The full filename for the file is:
C:\Users\Haydn\AppData\Roaming\CompanyName\AppName\settings.ini
Problem is, the CompanyName folder might not even exist. If SimpleIni fails to open the file, then the most common case is that the file doesn't exist, and I want to make it exist and then try again (even an empty file works).
The only libraries I'm using right now are SDL and SimpleIni. I want to avoid using platform-specific code, but would prefer not to link to Boost.
(Note: that path string was created by SDL, it would be different on linux or mac)