read-line


(read-line [ fileHandle ] )

This function returns the string read from an open file fileHandle or from keyboard; string input is finished by end-of-line character.

Arguments

fileHandle  (optional) the file handle as returned from (open); if omitted or NIL, input is taken from keyboard

Return

(string) the string as read from file or keyboard, until EOL is encountered (any combination of \n \r)

Example

(read fHandle)  "this is the next line from file"

Remarks

the EOL character(s) are omitted from returned string



©  Bricsys NV. All rights reserved.