New Line in .txt file

Hi All,

I am trying to build my own log file for my test steps. I need to be able to submit a new line. I have tried a few things but cant find what I need. Any answers would be appreciated.

open file "/tmp/testresult.txt" for appending 

write "Line 1" & Return & "This is" & "Line 2" to file "/tmp/testresult.txt" 

close file "/tmp/testresult.txt"

Nevermind, I found & crlf will work.

Right. For Windows systems you’ll want CRLF instead of Return. You can simplify a bit if you like:

put "Line 1" & CRLF & "This is" & "Line 2" & CRLF after file "/tmp/testresult.txt"