<< impexc2bd Basic functions invpd >>

Grocer >> Basic functions > internet2sci

internet2sci

downlaod a file from Internet

CALLING SEQUENCE

[rep, stat, err]=internet2sci(url_in,file_out,option)

PARAMETERS

Input

* url_in = the url to be downloaded

* file_out = the full name (path included) of the destination file

* option = any option to curl

 

Output

* rep = a column vector of character strings (standard output)

* stat = an integer, the error status. stat = 0 if no error occurred

* err = a column vector of character strings (standard error)

DESCRIPTION

Downloads a file from internet (for ascending compatibility; use rather Scilab function http_get, that did not exist when internet2sci was written).

EXAMPLE

mkdir('c:/data') // create the folder c:/data if it does not exist
[OSNAME] = getconfig()
internet2sci('http://epp.eurostat.ec.europa.eu/NavTree_prod/everybody/BulkDownloadListing?sort=1&file=data%2Fnamq_gdp_k.tsv.gz','C:\data\namq_gdp_k.tsv.gz',OSNAME)
// download the file namq_gdp_k.tsv.gz from Eurostat web site into the folder C:\data

AUTHOR

Éric Dubois 2014

Report an issue
<< impexc2bd Basic functions invpd >>