<< impexc2bd Basic functions invpd >>

Grocer >> Basic functions > internet2sci

internet2sci

downlaod a file from Internet

CALLING SEQUENCE

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

PARAMETERS

Input

* url_in = the url to be downloaded

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

* OSNAME = the name of the OS ('linux',''solaris',''sbd', 'macosx' or 'windows')

 

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

download a file from internet.

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 >>