Hello,
Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can not successfully retrieve data from a different domain, subdomain, or protocol. In short you will not be able to do this via get method if the text file is being served from other domain. Otherwise you can alter your get method to include a 'text' as the last parameter. Here is the modified script.
function readFile() {
$.get("http://wordpress.org/extend/plugins/about/readme.txt",
function(txt, status, jqXHR ) {
var lines = txt.split("\n");
for (var i = 0, len = lines.length; i < len; i++) {
save(lines[i]);
}
},
"text"
);
}
Regards,