FilesWriteBlock Method

Write a block of bytes to the file.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string WriteBlock(
	string path,
	byte[] bytes,
	bool create = false,
	bool allowCopies = false
)

Parameters

path  String
File path.
bytes  Byte
Byte array to write.
create  Boolean  (Optional)
Indicates whether the file is created
allowCopies  Boolean  (Optional)
Indicates whether file copies are supported, so that if the file exists a file with the copy name will be created.

Return Value

String
String wit the path of the file that will match the Path parameter unless copies are allowed and another file with the same name already exists.

See Also