Remove unused c_str() and correct format code.
Correct style and create readBufffer method in Config