Read File Byte Range

files · N064 · starter-package 7.0.1

Extract an exact sequence of bytes by offset and length.

Offset is zero-based. Offset 1 and Length 2 select BC from ABCD. Both ends of the range must fit inside the file.

Inputs

ConnectorTypeUsage
filetextConnect a live file from this workflow. Required.
offsetnumberRequired. ≥ 0
lengthnumberRequired. ≥ 0
nametextFilename for the new live file. Default range.bin.

Outputs

file (Text · file ID). Fire signals successful completion.

Connect File to the next file block. Use Copy File to save a persistent copy in a folder.

This block handles up to 32 MiB of file data.

What happens when it runs

If the block reports invalid input, check the file format and setting named in its message. Reconnect the matching output if the item came from an earlier run.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
offsetOffsetnumberNot set—
lengthLengthnumberNot set—
nameOutput filenametextrange.bin—

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputfile — Filetextyes
Inputoffset — Offsetnumberyes
Inputlength — Lengthnumberyes
Inputname — Output filenametextno
Outputfile — Filetexton success
Inputfire — Firefireno
Outputfire — Firefireon success