read-line

(read-line [file_descriptor])

The read-line function reads a string from the keyboard buffer or from an open file optionally specified by file_descriptor.

Return Value

The function returns a string.

Examples

: (read-line)

: (setq fd (open "test.txt" "r"))

: (read-line fd)