downlaod a file from Internet
[rep, stat, err]=internet2sci(url_in,file_out,OSNAME)
* 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')
* 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)
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 | ![]() | ![]() |