New Line

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)

try \r

You might need \r\n.

\r\n Works.

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

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

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

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??