p18.tcl
set folder /home/linux/tcl/farhat # you can even set file name.
if {[file exists $folder] == 1} {
puts "yes"
} else {
puts "No"
}
set folder /home/linux/tcl/farhat # you can even set file name.
if {[file exists $folder] == 1} {
puts "yes"
} else {
puts "No"
}