Hi guys,

I have a bit of a question relating to file streams in AIR.

I have a dictionary in a text file, which I need to load and parse into words.

I am hitting a bit of a snag, as the following code snips the characters
before the end of the file.

var content:String=stream.readUTF();
var wordArray:ArrayCollection=new
ArrayCollection(String(content).split('\r\n'));
for each(var word:String in wordArray)
{
WordDelegate.loadWord(word);
}

The last time I did something similar was in C++, where you basically read the
file character by character. I don't quite know how to do this in flex. Any
englightenment on the issue would be greatly appreciated.

-b