readFromBinaryFile
Syntax | readFromBinaryFile(path) | Package | file |
Alias | Pkg Usage | readBinary(path) |
Description
Read the bytes of a binary file.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
Path | String | Yes | Specifies the file name to read from. |
Return Type
Byte []
An array of bytes read from the binary file.
Example
Example 1
byte [] fileContent = readFromBinaryFile("C:/icon.jpg");It is recommended that you use forward slashes () for file paths. As a general observation use the silEnv() routine to create an absolute path.
