Reading a file and putting each line in a list fails with UNIX file

I use the following code read a file and put each line into a list

set theData to {}
open for access TheFile
set theData to read TheFile using delimiter return

This works fine except when I get a UNIX file where there are no returns at the end of lines. Does anyone know how to have a line feed as a delimiter/



Does this work?

set theData to paragraphs of (read file "path:to:file")

– Rob


Many Thanks