FileWriteAllBytes Method (String, Byte, PathFormat) |
[AlphaFS] Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already
exists, it is overwritten.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void WriteAllBytes(
string path,
byte[] bytes,
PathFormat pathFormat
)
Public Shared Sub WriteAllBytes (
path As String,
bytes As Byte(),
pathFormat As PathFormat
)
public:
static void WriteAllBytes(
String^ path,
array<unsigned char>^ bytes,
PathFormat pathFormat
)
static member WriteAllBytes :
path : string *
bytes : byte[] *
pathFormat : PathFormat -> unit
Parameters
- path
- Type: SystemString
The file to write to. - bytes
- Type: SystemByte
The bytes to write to the file. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
See Also