Close a file
To close an operating-system file, free the associated file descriptor.
A file descriptor remains active until either of the following
events occurs:
- The mi_file_close() function explicitly closes the file.
- The client application ends the session.
In a C UDR, a file descriptor has a memory duration of PER_SESSION. Files remain open after the UDR closes the connection.
In a client LIBMI application, a connection descriptor has a scope of the session. For more information, see Access operating-system files in client LIBMI applications.