Trouble Reading Text File

So I have this script that I am just trying to read the contents into a list. However it keeps blowing up with: Can’t set every line to {“apple”, “banana”, “cherry”, “grape”, “”, “”}.*)

Any ideas? Thanks in advance, Scott



set theFile to (POSIX file "/Users/scott/test1.txt")
try
	open for access theFile
	set fileContents to (read theFile)
	
	set lines to paragraphs of fileContents
	close access theFile
on error error_message number error_number
	log "OOPS " & error_message
	close access theFile
end try

lines is a keyword, a plurar form of class line, in AppleScript so you need to wrap pipes around lines it or think of another variable name.

Doh! Thanks