Oh, sorry, I forgot to tell.
I'm using C++.
I'm coding Cinema 4D plugins. And I need to compile them in Xcode, for Mac and in Visual Studio, for Windows.
So, any cross platform solution is preferable.
Will this work in C++?
Oh, by the way, my path is in this format:
/Applications/Maxon/Cinema4D 14 - DEV/plugins/PolyPaintTag/res/reg.txt