5.33.10.1 Print Statement

Use the puts command to write a string to an output channel. Predefined output channels are “stdout” and “stderr.” If you do not specify a channel, then puts display text to the stdout channel.

The STDIN Tcl command is not supported by Microchip tools. Example:

set a [ myprog arg1 arg2 ]

puts "the answer from myprog was $a (this text is on stdout)" puts stdout “this text also is on stdout”