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( |
|
...
Description
Excerpt |
---|
|
Read the text of a binary file. |
Read the bytes of a binary file.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
|
...
...
String | Yes | Specifies the file name to read from. |
|
Return
...
Type
Byte []
The bytes of An array of bytes read from the binary file.
Example
Example 1
Code Block |
---|
stringbyte [] fileContent = readFromTextFile("C:/icon.jpg"); |
...
...
...
You can use absolute paths and relative paths to "sil.home".
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_routines" and space = currentSpace ( ) |
---|
labels |
---|
|
...