A simple class for reading a writing files with cocos2D-x