prin1
(prin1 [expression [file_descriptor]])
The prin1 function outputs the printed representation of expression in the Command Window or writes it to the open file specified by the optional argument file_descriptor.
Only the specified expression is printed; no new line is included.
Return Value
The function returns the specified expression.
: (prin1 "Test")
"Test""Test"
: (prin1 "\123")
"S""S"
: (setq fd (open "test.txt" "w"))
<File: #3407:4624>
: (prin1 "Text \n" fd)
"Text \n"