List of Topics:
Research Breakthrough Possible @S-Logix pro@slogix.in

Office Address

Social List

How to print the result in NS2?

  • “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.