Hi!
I would like to read some data from an ASCII file like
tutu
toto
ttata
and display the each element in a listbox ($list)
If I do
set fd [open $listf "r"]
set data [read $fd]
set filessel [split data "\n"]
$list insert end $filessel
I get
tutu toto tata {}
two questions:
1) how can I display the data in the listbox like
tutu
toto
tata
2) remove {} (is it like a blank char?)
Thanks!
I would like to read some data from an ASCII file like
tutu
toto
ttata
and display the each element in a listbox ($list)
If I do
set fd [open $listf "r"]
set data [read $fd]
set filessel [split data "\n"]
$list insert end $filessel
I get
tutu toto tata {}
two questions:
1) how can I display the data in the listbox like
tutu
toto
tata
2) remove {} (is it like a blank char?)
Thanks!