How do you create a new line within a text file using Apples

Just wondering how to you create a new line in a new text file that is opened via Applescript…

for example, I want to write the following list to a new file with each item written on a new line:

set mylist to {“aa”, “bb”, cc"}
set mynewfile to open for write access “newfile.txt” with write permission
set i to 1
repeat 3 times
write item i of mylist to mynewfile
(WHAT IS THE CODE I NEED TO INSERT HERE TO CREATE A NEW LINE)
set i to i + 1
end repeat
close access mynewfile

This should do the trick:

set mylist to {"aa", "bb", "cc"}
set mynewfile to open for access "newfile.txt" with write permission
repeat with x in mylist
	write x & return to mynewfile
end repeat
close access mynewfile

Hope this helps,
Brad Bumgarner, CTA