Moo_DownloadText ( sFile );
This functions lets you download a text file from the internet to the temporary folder and return the value, which you can either save to a variable or put it into a field.Parameters
| Name | Type | Required | Default | Description |
| sFile | String | Yes | The input file to be downloaded. |
Return Value
Returns either the contents of the downloaded text file, or an error code.
Notes
Should work better with dynamic urls since MooPlug Version 0.4.7.
Errors
| Error Code | Description |
| Moo_DownloadText|Err_1 | Invalid number of arguments. |
| Moo_DownloadText|Err_2 | Invalid input URL. |
| Moo_DownloadText|Err_3 | File download failed. |
| Moo_DownloadText|Err_4 | Error opening file. |
| Moo_DownloadText|Err_5 | Error reading file. |
Related Functions
