Printing the Result in TCL

  • “puts” command is used to print the result in tcl script
  • To Display the result in command prompt following command is used

    puts “result”

  • The “result” will be displayed in command prompt.
  • To display the result in file following command is used

    set r [open result.tr]puts $r “result”

  • The “result” will be displayed in result.tr file.