#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
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
Subscribe now to keep reading and get access to the full archive.
Recent Comments