Login | Sign Up

AutoLISP Function Detail
Name: princ

(princ [expr [filename]])

Displays the text string, expression, or variable value at the Command line or in the optional file.

Note: Control characters are acted upon.

Control Characters Meaning
\\ Single Backslash
\" Double quote character
\e Escape character
\n New line feed
\r Return character
\t Tab character
\nnn Octal code nnn
\U+nnn Unicode nnn
\M+Nnnn Unicode nnn

(princ "\nHello World!")
Hello World! "\nHello World!"

(setq op-file (open "test.txt" "w"))
(princ "\nHello World!" op-file)
"\nHello World!"