Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

readFromBinaryFile(path)

Package

file

...

Alias

Pkg Usage

readBinary(

...

path)

Description

Excerpt
hiddentrue
Read the text of a binary file.

Read the bytes of a binary file.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

...

Path

...

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");

...

...

Note

...

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)
showLabelsfalse
max25
showSpacefalse
cqllabel = "file_routines" and space = currentSpace ( )
labels

...

array_routines