Lreadfile command – Lexmark C762 User Manual

Page 169

Advertising
background image

PJL

3-90

LREADFILE Command

Use this command to read data from a file on a storage device.

Syntax:

@PJL LREADFILE DEVICE = filedevice FILENAME = "fname"
[START = location] [LENGTH = bytecount][<CR>]<LF>

Response Syntax:

@PJL LREADFILE DEVICE = filedevice FILENAME = "fname"
START = location LENGTH = bytecount<CR><LF>
<requested data from the file>@PJL END DATA<CR><LF><FF>

Notes:

•

The file must be closed using the LCLOSEFILE command once all operations
are complete.

•

The command is ignored if the file doesn’t exist on the device or has not
already been opened with LOPENFILE with an

accesstype

of

RO

,

RW

, or

AP

.

•

If the START =

location

parameter is omitted, location

0

(beginning of the

file) is assumed.

•

If a START location is provided but it is greater than the file size, the response
will contain no file data.

•

If the LENGTH parameter is omitted,

bytecount

is assumed to be equal to

the entire file beginning at the START location.

•

If the LENGTH is greater than the file size on a LREADFILE command, it is
assumed to be the entire file beginning at the START location.

Advertising
This manual is related to the following products: