Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • pro@slogix.in
  • +91- 81240 01111

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.