Main Site Documentation

New Line


#1

Hello All,

I’m having a hard time finding out how to put a newline char into a text file. I’ve tried \n but to no avali.

Does anyone else know how?

(The file is on an SD card)


#2

try \r


#3

You might need \r\n.


#4

\r\n Works.

So that’s carridge return + new line, just like in com ports.


#5

\r\n is the newline mode that Windows uses. Linux uses \n.


#6

In .net I’m used to Envrionment.NewLine so it was a bit confusing at first.


#7

Yeah, I can see how. In reality, that property will always be \r\n. I don’t even know why they would include that. How many more letters is that property than just saying \r\n??