I'm using readln to parse a text file line by line (I'd rather not use 'read' if ever I parse a large file), however I have no idea how to catch the end of the file:
Code: Select all
var myFile = File.openDialog ("Select file","*.txt");
var fileOK = myFile.open("r","TEXT","????");
while(t = myFile.readln()){
//alert(t) or whatever
};
Any ideas ? Short of using read?