The mi_file_close() function

The mi_file_close() function closes an operating-system file.

Syntax

void mi_file_close(fd)
   mi_integer fd;
fd
The file descriptor of the file to close.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_file_close() function closes the operating-system file that the fd file descriptor references. This file descriptor must have been obtained from a previous call to the mi_file_open() function. The mi_file_close() function is a destructor function for an operating-system file descriptor. It frees the fd file descriptor references. Unless you explicitly close a file with mi_file_close(), files remain open for the duration of the client session.

Server only: In a C UDR, this function can close files on either the server or client computer. You specify the location of the file when you open it with the mi_file_open() function.

Return values

None.