Write a binary file
Namespace: LLCryptoLib.UtilsAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public bool WriteBinaryFile( string filePath, byte[] contents ) |
Visual Basic |
---|
Public Function WriteBinaryFile ( _ filePath As String, _ contents As Byte() _ ) As Boolean |
Visual C++ |
---|
public: bool WriteBinaryFile( String^ filePath, array<unsigned char>^ contents ) |
Parameters
- filePath
- Type: System..::..String
The file path.
- contents
- Type: array<System..::..Byte>[]()[][]
The file contents.
Return Value
True if the file was correctly written
Remarks
In case this method return false, check ErrorMessage