DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Download - Download File From Internet And Store It Locally

02.27.2006
| 2198 views |
  • submit to reddit
        // download file from Internet and store it locally

download: func [
    "download remote-file from Internet and store it in loc-file"
    loc-file [file!] remote-file [url!]
][write/binary loc-file read/binary remote-file]