File: WriteAllbytes

WriteAllbytes

Opens a file, writes all bytes to the file, then closes the file.



 Public Sub WriteAllbytes(
	  ByRef Path As String,
	  ByRef Bytes ( ) As Byte )

Parameters

Path
[ByRef] String. The path and filename of the file to write to.
Bytes
[ByRef] Byte. The bytes to be written to the file.

Remarks

If the file doesnt exist it will be created. If the file already exists, it will be overwritten.

See Also

Project CorLib Overview

Class File Overview