Ok user thanks for all the time you spent with me I greatly appreciate your help.user wrote:If you're writing a file, just 'puts' from within the loop and everything should be fine.
eg:Code: Select all
set file [open output.txt w] foreach user $users { puts $file "$user:" foreach xtra [getuser $user XTRA] { puts $file "[lindex $xtra 0] = [lindex $xtra 1]" } } close $file
if this doesn't work i'm gonna backup 4 paces and chuck the code.