hi,
I am trying "catch" command.
========================================
set readFileInput [open testA1.txt" "r"]
If the file does not exist, the errors occur. how to start catch statment??
this is what I am thinking.
set retval [catch $readFileInput]
if {$retval != 1} {
puts "An error occurred"
}
Thank you in advance
I am trying "catch" command.
========================================
set readFileInput [open testA1.txt" "r"]
If the file does not exist, the errors occur. how to start catch statment??
this is what I am thinking.
set retval [catch $readFileInput]
if {$retval != 1} {
puts "An error occurred"
}
Thank you in advance