webdownload
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - File handling
Introduced first in SolidGeometry 4.3, Creation date: 2018-11-01, Last change: 2025-09-14
downloads a file from a url and changes the name to date and tim
Description
Same construction data is stored on file server in the internet. By using this function it is possible to download it and store it permanently for performance reasons locally on your system. In addition the name of the file can be changed to a name concept that fits your needs.
By default date and time of download is used as name.
By default the original extension of the file is reused.
See Also: loadweb
Example Illustration
Syntax
[fname,orgfname,data]=webdownload([url,FNAME])
Input Parameter
url: | | complete url to download the file |
FNAME: | | new file name; default is datestr; false=> original name |
Output Parameter
fname: | | file name on your file system |
orgfname: | | original file name |
data: | | data from url source |
Examples
url='';
webdownload(url,false)
webdownload(url)
webdownload(url,'test')
webdownload(url,'test.xxx')
Copyright 2018-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21