home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
VRAC
/
JUN93.ZIP
/
TIP876.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1993-05-19
|
522b
|
22 lines
; TIP 876: FILE2SCR.LSP (C)1993, MARK H. MILLER
; File2scr.lsp is for use within other LISP code.
; Lists a text file to the screen.
; Does not test for file existence.
(defun f2s (FILE)
(setq F (open FILE "r"))
(while (setq L (read-line F))
(write-line L))
(setq F (close F))
(princ)
)
; This next routine does the same thing only does not offer the
; flexibility of the one above.
(defun f2s2 (FILE)
(setvar "cmdecho" 0)
(command ".type" FILE)
(princ)
)