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 egavilan
7 days ago
tcl by bch
13 days ago
tcl by Bradipo
13 days ago
tcl by aspect
13 days ago
tcl by Bradipo
13 days ago
tcl by Bradipo
13 days ago
tcl by Bradipo
13 days ago
lilypond by Bradipo
14 days ago
tcl by cgm
24 days ago
tcl by dandyn
33 days ago
Submit
New paste
Documentation
From Jabber