#274 The glob command in tcl
glob command returns the names of the files that match a pattern.
set files [glob *.tcl]
foreach file $files {
puts $file
}
Output:
ex274.tcl
Last Updated on 2022-03-16 by gantovnik
Mar 16, 2022 | tcl | 0 comments
#274 The glob command in tcl
glob command returns the names of the files that match a pattern.
set files [glob *.tcl]
foreach file $files {
puts $file
}
Output:
ex274.tcl
Last Updated on 2022-03-16 by gantovnik
Subscribe now to keep reading and get access to the full archive.
Recent Comments