As you can see, according to the writer of this code, the readCSV function gets the brain data and returns it as a char.
That is not what the author said. The author said that the function returned a pointer to a char (array).
So, why are you not using a pointer?
char *brainCrap = brain.readErrors();