libSystem Reference Manual: File

## File File |

## Functions

File * | file_new ()
void | file_delete ()
ssize_t | file_read ()
ssize_t | file_write ()

## Types and Values

typedef | FileMode
| File

## Description

## Functions

### file_new ()

    File *
    file_new (char const *path,
              FileMode mode);

#### Returns

### file_delete ()

    void
    file_delete (File *file);

### file_read ()

    ssize_t
    file_read (File *file,
               void *buf,
               size_t size,
               ssize_t count);

#### Returns

### file_write ()

    ssize_t
    file_write (File *file,
                void *buf,
                size_t size,
                ssize_t count);

#### Returns

## Types and Values

### FileMode

    typedef int FileMode; /* FIXME actually is an enumerated type */

### File

    typedef struct _File File;