powered by
By default, the file descriptor is not closed when a stream is destroyed, use SetCloseOnDelete( stream, TRUE ) to change that.
SetCloseOnDelete( stream, TRUE )
See classes FileInputStream and FileOutputStream for implementations.