how to use a text asset

I have a text file with hundreds of lines that I’d like to split. The file levels.txt in the project, but this gives me an error.

var Puzzles = new String[449];
var levels: TextAsset;
Puzzles = levels.Split("\n"[0]);

error: ‘Split’ is not a member of ‘UnityEngine.TextAsset’.

levels.text.Split("\n"[0])

However there isn’t any reason to declare the size of the string array beforehand, since it’s returning a new array anyway.

var puzzles = levels.text.Split("\n"[0]);

–Eric