I have a txt file on mydomain.net/file.txt.How can I read this into an array filecontent where each new line is a element and ignore lines containing //? .
JavaScript
var filecontent=[];
function txtToArray(link){
//code here
}
txtToArray("mydomain.net/file.txt");
document.write(filecontent);
mydomain.net/file.txt
//file.txt
aaa
aa1
aa2