Programming Guide



sm_fio_close

Closes an open file stream

int sm_fio_close(int file_stream);

file_stream
A handle to the file to close, obtained by sm_fio_open.

Returns

Description

sm_fio_close closes the specified file and releases its handle for reuse. You should call this function after all read and write operations that require an open file stream—for example, after calling sm_fio_gets.

This function is similar to the C function fclose, except that sm_fio_close takes an integer argument so that it can be called from JPL.

See Also

sm_fio_open