For what is this: postStr += "\r\n\r\n"

I have a question i dont really understand for what we use postStr += "\r\n\r\n"
Can anybody explain?
thanks

 Accepted Answer

Star Strider
Star Strider on 12 Oct 2020
It appears to be an instruction to terminate a read or write format string of some sort with a string of 2 carriage returns (the ‘\r’) alternating with newline (the ‘\n’) characters.

7 Comments

So do i understand it correct: its just a format thing ?
Very likely, yes.
It isn't valid Matlab syntax. I believe Octave will allow this, although I didn't check.
Rik — Thank you!
Thank you guys very much!
As always, our pleasure!
My pleasure!

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!