Read the file?
Code to load a text file into an array by lines:
Code:
var lines = [];
lines.load(System.exePath + filename);
Use System.exePath to read a file from the same folder as the main exe. Without a path, it will load the file from the data folder or one of the .xp3 archives.
You can open the URL in the system browser:
But if you need to download a file and read it, then it is probably impossible by default without plugins or using external programs to download the file, like writing a PowerShell script to download the file, run it with
Code:
System.shellExecute("download.ps1")
and then read downloaded file with load. I never tried this, so not sure if it will work.