Read line by line From .txt File In AS 3.0

Hi,

I’m wondering how I can read from a .txt file in actionscript 3.0. I’m used to Java where when I want to read from a file I would do something like this.

Scanner scan = new Scanner(url.openStream());
String line;

while (scan.hasNextLine())
{
      line = scan.nextLine();
      //do something with that line
}

Is there something similar in Actionscript where I can read a file line by line?

icekube12jr