Thank you both, but I will use Serial.print only once so for some reason I want a 200 character sentence to make it viewable in my display by spliting it to parts but not using Serial.print more that once...
Serial.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
"Fusce maximus dictum orci et sodales. "
"Duis tempor id tortor a venenatis. "
"Nulla et vehicula elit, id congue ex. "
"Maecenas et sem ipsum. "
"Phasellus mollis placerat ipsum, non faucibus nibh posuere.")
Serial.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
"Fusce maximus dictum orci et sodales. "
"Duis tempor id tortor a venenatis. "
"Nulla et vehicula elit, id congue ex. "
"Maecenas et sem ipsum. "
"Phasellus mollis placerat ipsum, non faucibus nibh posuere.")
That does not meet the OP's request. It prints on one line.
Ok I put the big sentence in one line in Serial.print. But I cannot compile it,because the data I want to send via the Serial is 50KB. Is there a way to use flash? I mean can I use flash to store and send over the serial 50 KByte data with one Serial.print command?
I want to send the big sentence from the Arduino to my PC through the usb. Can I send so big sentence using flash memory? Because the SRAM is too small...
Arduino isn't really suitable to just store and send a 50k long string...
You could however store it to exernal memory or an SD card. But don't try to buffer the full 50k in the Arduino. Just read a bit, send a bit, read a bit, send a bit etc etc
Literal string constants must be less than 32768 bytes, so you would have to use two literals and two prints. To make sure they use only FLASH memory (not RAM), use the PROGMEM keyword: