XML Script logo
Command _read
Attribute

stripLF, a string, defaults to 'no'

[optional] whether to strip newlines.

Attribute

quantity, a auto-interpolated number, defaults to '1'

[optional] the number of characters/lines to read.

Description

This function reads 'quantity' lines from the console and puts the result on the output stack. If an End-Of-File marker is reached, it is replaced with a newline and the function then returns without trying to read more input.
All carriage return characters are stripped from the output. If 'stripLF' is set to 'yes', newline characters will be stripped as well. If 'stripLF' is set to 'no' (the default) newline characters are left in the output.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited