I have a list that looks like this:
{texta textb textc textd
text1a text1b text1c text1d
text2a text2b text2c
text3a text3b text3c text3d
text4a text4b text4c text4d text4e
text5a text5b text5c
text6a text6b text6c text6d text6e
text7a text7b text7c text7d text7e
text8a text8b text8c text8d text8e}
I want to be able to output each line by it self, because i need each list for different purpose. for example output "texta textb textc textd" and other lines seperately
I tried doing this:
But it wont come out right. I think i need a comma at the end of each line to output each line seperately, how do i do that?
Any help will be appreciated.
{texta textb textc textd
text1a text1b text1c text1d
text2a text2b text2c
text3a text3b text3c text3d
text4a text4b text4c text4d text4e
text5a text5b text5c
text6a text6b text6c text6d text6e
text7a text7b text7c text7d text7e
text8a text8b text8c text8d text8e}
I want to be able to output each line by it self, because i need each list for different purpose. for example output "texta textb textc textd" and other lines seperately
I tried doing this:
Code:
set result {texta textb textc textd
text1a text1b text1c text1d
text2a text2b text2c
text3a text3b text3c text3d
text4a text4b text4c text4d text4e
text5a text5b text5c
text6a text6b text6c text6d text6e
text7a text7b text7c text7d text7e
text8a text8b text8c text8d text8e}
foreach output $result {
set i 0
puts [lindex $output $i]
incr i
}
But it wont come out right. I think i need a comma at the end of each line to output each line seperately, how do i do that?
Any help will be appreciated.