Hi
Am doing my project in NS2. I need to split the particular
content from a file and assign it to a tcl list variable. Can anybody
help.?? i hv attached the file. and i need to split like { 7 7 7 9 9 9
13....} into a TCL list variable, {12 9 13 7 ...} into a tcl list variable
like that. The TCL script i used is as follows.
*set neighbor [open Neighbor]
set neigh [read $neighbor]
close $neighbor
while {[gets $neigh stuff] >= 0} {
lappend datab $stuff
}
set b [lindex [lindex $datab 1 ] 0]
puts $b*
--
*---
prabha*