WriteAllBytes
WriteAllBytes
Writes data to a binary file.
Syntax
FileSystem.WriteAllBytes(File, Data, Append)
Parameters
File |
String, input |
|
Path and name of the file to be written to. |
||
Data |
Byte, input |
|
Array of byte data to be written to the file. |
||
Append |
Boolean, input |
|
True to append to the file contents; False to overwrite the file contents. Default is False. |
Example
Sub Main()
Dim MyData(256)
WriteAllBytes "C:\Users\Public\My Directory\Data.bin", MyData, True
End Sub