Moo_DownloadFile  -  Download a file.

Moo_DownloadFile ( sFile ; sLocal ; bProgress );

This functions lets you download a file from the internet to the temporary folder and returns the path to the local file.

Parameters

NameTypeRequiredDefaultDescription
sFileStringYes The input file to be downloaded.
sLocalStringNo Optional local path to save the file to.
bProgressBooleanNoFalseShould the download progress be shown.

Return Value

Returns either the path to the downloaded text file, or an error code.

Notes

Can optionally be used with the Moo_ProgressOptions function.

Errors

Error CodeDescription
Moo_DownloadFile|Err_1Invalid number of arguments.
Moo_DownloadFile|Err_2Invalid input URL.
Moo_DownloadFile|Err_3File download failed.
Moo_DownloadFile|Err_4User cancelled download.
Moo_DownloadFile|Err_5Local path doesn't exist.

Related Functions