I need some code in AS3 that will read a text file line by line and insert it into an array. Is this possible without having any special character?
sample.tx
hmmm, it's really a bit strange to use space as a separator. I mean, you could do it this way:
var result:Array = [];
for each (var s:String in source.split(" ")) {
var a:Array = s.split("=");
result[a[0]] = a[1];
}
yet relying on " " for splitting, really is not such a good idea, can't you use JSON, CSV or XML?