Easypt

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)

Child of:

network

Signatures:

Object, Callable, BlockCallable

Example:

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());