WriteFile
The WriteFile function writes a array of type SAFEARRAY or part of it to the disk file or to string variable.
WriteFile
safearray,iFrom,iHowMany,sFileName[,bAppend]
Parameters
-
safearray
-
An array to write to a disk file of string variable.
-
iFrom
-
Specifies the the index of first alement of array will be
written or convert to string in first turn.
-
iHowMany
-
Specifies the number of bytes will be written.
-
sFileName
-
Variable specifying the name of the file to write to. Or, the string
variable containing empty string. In this case the binary data will
be converted to string instead of writing to file.
-
bAppend
-
Optional. Specifies whether the data being written to disk should be appended to
file or any existing file with the same name should be overwritten.
Return value
The function returns True if successful. Otherwise, returns False.