I recently got a question on experts-exchange asking how to read a list of
ids stored in a textfile.
Sample:
———————-
12345
67890
33
56294
———————-
Solution:
The following peice of code will help read a textfile line by line and store
them in the ‘tmp’ array.
myVars = new LoadVars();
myVars.onLoad = onDataload;
myVars.load(“data.txt”);
var tmp;
function onDataload(success) {
for(var i in myVars) {
var data = i
break;
}
tmp [...]
