Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | readFromBinaryFile(path) | Package | file | Alias | | Pkg Usage | readBinary(path) | |
Description
Excerpt |
---|
|
Read the text of a binary file. |
Read the bytes of a binary file.
...
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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
Code Block |
---|
|
byte [] fileContent = readFromBinaryFilereadFromTextFile("C:/icon.jpg"); |
Note |
---|
It is recommended that you use forward slashes () for file paths. As a general observation use the silEnv() routine to create an absolute path. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "file_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|