chickadee » nutils » printnl

printnlprocedure
  • in - ITEM ... - virtually any scheme object and any number of ITEMs. These are printed to the terminal via display with a space between ITEMs and newline after the last ITEM is printed. (printnl = print + nl, or newline.)
  • in - prn: <output-port> - by default, printnl (and all other print/write... procedures) print to current-output-port. However, the prn: keyword option directs printing to any open output port.
  • returns: no value.
 (import scheme.base nutils)
 (printnl 'test "my-output" 'isn\'t "bad at all!") => 
   test my-output isn't bad at all!
 (define op (open-output-file "file1.txt"))
 ;; print to a file:
 (printnl "Here are test results:" prn: op)
 (printnl ... prn: op)
 ...
 (close-output-port op)