This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need help with tcl

Old posts that have not been replied to for several years.
r
runner

Post by runner »

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
Ok user thanks for all the time you spent with me I greatly appreciate your help.

if this doesn't work i'm gonna backup 4 paces and chuck the code.
Locked