I tried to wrap the windows.h function GetPrivateProfileString, and it works; however, when I quit my application I get an error that spits out a bunch of garbled text and then says "invalid character". It crashes right after the statement in acklog:
Free input,funcs,panels,defs,syns,views,strings
which I think is not coincidental. Somehow, the string that GetPrivateProfileString returns breaks the system when it tries to clean up the memory. I've tried copying strings over the return values, but I think I'm just creating a new string under the hood so that the bum string still sticks around until cleanup. Any insight into the error would be greatly appreciated!
Alternatively, any way to read blocks of text from a file would work.
Thanks so much for your time!