<< webread | Web tools | webwrite >> |
result_filename = websave(filename, url) |
result_filename = websave(filename, url, name1, value1, ... , nameN, valueN) |
result_filename = websave(filename, url, name1, value1, ... , nameN, valueN, options) |
a string: name of file to save content to.
a string: URL to a web service.
Name-Value Pair Arguments.
a weboptions object.
a string: full filename path.
websave() saves content from the web to filename.
websave function returns the full filename path as result_filename.
url ='https://httpbin.org/get';
filename = [tempdir(), 'test.txt'];
destination_filename = websave(filename, url, weboptions('ContentType','json'));
txt = fileread(filename)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET