Hi :),

I have two variable in main tcl file ( main.tcl), we run this file as "ns 
main.tcl".
I need to save these two variable e.g. " x  y " as an output file, so that i 
can generate a graph.

x and y changes for each run of "ns main.tcl".  


How can i do it ? I don't know the sample of code in tcl. Please I need your 
help. 
so that my output file, "result.txt" should look like below;
x y
x y
x y


Best Regards,
Imran Khan

Reply via email to