What does below declaration mean ?
var line = {}, lines = [], hasmore;
I understand that lines = []
is an array , but I have no idea about the others.
Actual code is to reading file line by line using javascript xpcom
var line = {}, lines = [], hasmore;
do {
hasmore = istream.readLine(line);
lines.push(line.value);
} while(hasmore);