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 FLORENTIS
2 days ago
tcl by Florentis
2 days ago
tcl by schelte
7 days ago
tcl by iobates
7 days ago
tcl by cgm
8 days ago
tcl by iobates
13 days ago
tcl by FM
17 days ago
tcl by FM
17 days ago
tcl by FM
17 days ago
tcl by FM
17 days ago
Submit
New paste
Documentation
From Jabber