using arrays
Posted to
tcl
by miguel at Sat Aug 11 15:40:17 GMT 2007
view raw
foreach
i {1 2 3 4 5} {
set
input_s(
$i
) [
open
"story
$i
.txt" r]
set
lines_s(
$i
) [countLines story
$i
.txt]
set
data_s(
$i
) [
read
$input_s($i)
]
close
input_s(
$i
)
}
Recent Posts
tcl by mookie
1 days ago
tcl by cgm
1 days ago
tcl by cgm
1 days ago
tcl by mookie
1 days ago
tcl by mookie
4 days ago
tcl by mookie
4 days ago
tcl by mookie
5 days ago
tcl by oldlaptop
9 days ago
tcl by mookie
49 days ago
tcl by oldlaptop
53 days ago
Submit
New paste
Documentation
From Jabber