Platform |
Win32, x64 |
Purpose |
To to read the contents of a URL into memory. |
Syntax |
INTEGER(7) FUNCTION DOWNLOAD@(URL, FILESIZE, ERROR) |
Description |
The function returns the INTEGER address of the downloaded file stored in memory. The memory can be released by a call to RETURN_STORAGE@. FILESIZE is the size of the file that is to be downloaded. If this value is zero then the function returns zero and the size of the file is the returned as the new value of FILESIZE. The returned error code ERROR is zero for success. An error code value of 1 (one) indicates that FILESIZE was too small so that only part of the file was stored. Error code values greater than 1 (one) indicate total failure with the function returning a zero address. The returned address can be used to access the file by using FTN95 intrinsics such as CCORE1(addr). |
See also |
|
Example |
INCLUDE <clearwin.ins> |