set fp [open $fname($x) r] while {[gets $fp data]>0} { scan $data "%s %s" qj($i) qa($i) puts stdout [format "%s %s" $qj($i) $qa($i)] incr i } close $fp
set $c [lindex [split $data ","] $j]
grid rowconfigure . 1 -weight 100 grid rowconfigure . 2 -weight 100 grid columnconfigure . 2 -weight 100