05.01.2013 Views

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FILE-READ<br />

FILE-READ-TOKEN<br />

FILE-READ-LINE<br />

FILE-WRITE<br />

Reads n bytes from the opened text file.<br />

Syntax: FILE-READ = $filehandle, n, $string<br />

Appendix C: Automated Print Control<br />

Note: FILE-READ attempts to read n bytes from the file associated<br />

with $filehandle into $string. It begins reading at the current file<br />

pointer. When the read is complete, the file pointer is incremented by<br />

the number of bytes read. $ERRORCODE is set to 1 on end-of-file.<br />

Reads the file for tokens, which are separated by the delimiter<br />

character.<br />

Syntax: FILE-READ-TOKEN = $filehandle, C, $string<br />

Notes:<br />

FILE-READ-TOKEN reads from file associated with $filehandle into<br />

$string until it reaches the delimiter character C. It begins reading<br />

at the current file pointer. When the read is complete, the file<br />

pointer is incremented by the number of bytes read. $ERRORCODE<br />

is set to 1 on end-of-file.<br />

(C is limited to one character.)<br />

The delimiter is truncated.<br />

Reads the current line from the opened text file.<br />

Syntax: FILE-READ-LINE = $filehandle, $line<br />

Notes:<br />

$line will hold the one-line text.<br />

The LF is truncated.<br />

The current line changes to the next line when the read is<br />

complete.<br />

$ ERRORCODE is 1 on end-of-file.<br />

Writes a string to the opened text file.<br />

Syntax: FILE-WRITE = $filehandle, text<br />

Legitronic User Manual (v3.4) 200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!