You can use MsgPlus.DownloadFile(); or a XML HTTP Request.
DownloadFile :
If you look in the scripting documentation under
Objects Reference -> MsgPlus Object -> Functions -> DownloadFile there is an example for a text file
.
XML HTTP Request:
code:
http_request = new ActiveXObject("Microsoft.XMLHTTP");
http_request.open('GET', "http://server.com/test.txt", true);
http_request.onreadystatechange = function(){
if (http_request.readyState == 4) {
if (http_request.status == 200) {
TextFileContents = http_request.responseText;
}
}
};
http_request.send(null);