downloadFile..Root.network.downloadFile| OS | command | description |
|---|---|---|
| windows | powershell -command "Invoke-WebRequest -Uri \"URL\" -OutFile \"destinationPath\"" |
Invoke-WebRequest |
| linux | wget -O "destinationPath" "URL" |
wget |
(warning: commands prints own output)
Parameters: String URL, String destinationPath
Return value: reference to destinationPath
Object, Callable, BlockCallable
import("network");
import("file");
network.downloadFile("https://raw.githubusercontent.com/Antollo/Easypt/master/README.md", "readme.txt");
auto file.=(File());
file.open("readme.txt");
log(file.readAll());