# FS_OpenFileFast

## Syntax

  `#include <nitro/fs.h>`
  `BOOL FS_OpenFileFast( FSFile *p_file, FSFileID file_id );`

## Arguments

p_file | Address of the `FSFile` structure.
`file_id` | File ID that is specified by `file_id` in the FSDirEntry structure

## Return Values

Returns TRUE if the file opens properly; FALSE otherwise.

## Description

This function uses the specified ID to open a file. Use the `FS_ReadDir` function to obtain the ID.

## Note

In the application, the `NITRO_MAKEROM` flag must be enabled so that the ROM file system is included.
This function cannot be called from the interrupt handler (IRQ mode).
Also note that in some cases processing may not end if interrupts are left prohibited.

## See Also

`FS_CloseFile
FSDirEntry
FSFile
FSFileID
FS_GetFileLength
FS_OpenFileEx
FS_ReadDir
FS_ReadFile
FS_SeekFile
FS_SeekFileToBegin
FS_SeekFileToEnd`

## Revision History

2008/10/02 Revised the See Also list.
2004/11/02 Changed the argument name.
2004/09/24 Added text under Caution regarding the conditions for calling this function.
2004/05/14 ID type changed from `u32` to `FSFileID`.
2004/04/02 Changed "file system" to "ROM file system."
2004/04/01 Initial version.

CONFIDENTIAL