-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
mirc/commands/bread
< mirc | commands
The /bread command can be used to read a certain amount of bytes from a file at a given position and store it in a binary variable.
The beginning of the file is position 0.
Synopsis
/bread -t <filename> <bytepos> <numbytes> <&bvar>
Switches
- -t - reads data up to the next CR/LF
Parameters
- <filename> - file name to read from
- <bytepos> - starting byte position
- <numbytes> - length (bytes) to be read
- <&bvar> - binary variable to store the data in
Example
;noop $copyExample(FileA,FileB) alias copyExample { ;Read the whole file into a binary variable bread $qt($1) 0 $file($1).size &tempFile ;Write the bytes form the binary variable to a file bwrite $qt($2) 0 -1 &tempFile }
Compatibility
Added: mIRC v5.3
Added On: 13/12/97
Note: Individual switches were not taken into consideration.