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.

...

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 []

An array of bytes read from the binary file.

...

Code Block
byte [] fileContent = readFromTextFilereadFromBinaryFile("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)
showLabelsfalse
max25
showSpacefalse
cqllabel = "file_routine" and space = currentSpace ( )
labelsarray_routines