You can use OPEN and CLOSE as often as you need to in a program.
Obviously you can on OPEN a file that is not already OPEN and can only CLOSE a file if it has been opened.
Regarding Best Technique – You want to do it as few times as possible. Thre is overhead each time it is done.
REGISTER or login: