File System File Access Functions
The file access functions (listed in Table - File API functions) provide an API for performing a sequence of operations on a file located on a volume’s file system. The file object pointer returned when a file is opened is passed as the first argument of all file access functions (a characteristic which distinguishes these from the entry access functions), and the file object so referenced maintains information about the actual file (on the volume) and the state of the file access. The file access state includes the file position (the next place data will be read/written), error conditions and (if file buffering is enabled) the state of any file buffer.
Function | Description |
---|---|
| Assign buffer to a file. |
| Write buffered data to volume. |
| Close a file. |
| Clear error(s) on a file. |
| Determine whether a file is at EOF. |
| Determine whether error occurred on a file. |
| Determine whether a file is open or not. |
| Acquire task ownership of a file. |
| Release task ownership of a file. |
| Acquire task ownership of a file (if available). |
| Open a file. |
| Get file position. |
| Set file position. |
| Get information about a file. |
| Read from a file. |
| Truncate a file. |
| Write to a file. |