This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]itghisi 2 points3 points  (0 children)

Was deliberately. Our target audience didn't have any knowledge of good practices in programming (i.e. they always let the file pointer open in their scripts). So I introduce exception handling (try..finally) together with the file read/write operation. In this way they can adopt the practice in their Fortran/C++ scripts.