I need to modify a library (flavortext.h)

Which Arduino board do you use ?
If you are using a basic Arduino board (Uno, Nano, Mega, Nano Every), then you might have to change it to use PROGMEM.

This function returns the text: void getFullLine(char * buffer, bool constructive)

I don't know if there is a maximum length, you can start with 80.

char buf[80];

void loop()
{
  getFullLine( buf, true);
  Serial.write( buf);
  getFullLine( buf, false);
  Serial.write( buf);
  delay( 5000);
}