Closing Files

If you do not explicitly close a file, Rexx closes the file when the Stream object is reclaimed by the garbage collector. This frequently does not occur until your program exits, so it is good practice to explicitly close files when you are finished with them.