H
Henri
This question is applicable to all the languages, but could someone provide
me with an code example where FINALLY is really necessary.
FINALLY is often used for this kind of code:
Try
....
open a file
read some date
.....
Catch
... dealing with the file error ....
Finally
close the file
End Try
But wouldn't the following (without FINALLY) work as well?
Try
....
open a file
read some date
.....
Catch
... dealing with the file error ....
End Try
close the file
Please tell me what I'm missing.
Thanks
Henri
me with an code example where FINALLY is really necessary.
FINALLY is often used for this kind of code:
Try
....
open a file
read some date
.....
Catch
... dealing with the file error ....
Finally
close the file
End Try
But wouldn't the following (without FINALLY) work as well?
Try
....
open a file
read some date
.....
Catch
... dealing with the file error ....
End Try
close the file
Please tell me what I'm missing.
Thanks
Henri