SaveAs
Saves the data retrieved by FetchData method to a disk file.
SaveAs vFilepath[,vBinarymode][,vAppend]
Parameters
- vFilepath
- The path to file to write the data.
- vBinarymode
- Optional. Specifies the file writing mode: binary or text. The True value means the binary mode of writing file,
otherwise the file will be written in text mode.
The default value is True (file will be written in binary mode).
- vAppend
- Optional. Specifies if the data should be appended to the file (True), otherwise the file will be overwritten.
The default value is False.
Return value
This method returns True if success. Otherwise, it returns False.
Notes
If specified file does not exist, it will be created independently on vAppend parameter value.
In binary mode the data are not affected: they are saved into file as is without any modifications.
The text mode will try to perform UNIX-Windows text file format conversion, if necessary.
Example
http.FetchData "http://www.thatserver1.com/archive.zip"
http.SaveAs "c:\myfiles\zipfile.zip"