| Home | Libraries | People | FAQ | More

### Files

Often when implementing network algorithms such as servers, it is necessary to interact with files on the system. Beast defines the File concept and several models to facilitate cross-platform interaction with the underlying filesystem:

Table 1.11. File Types

Name | Description
--- | ---
`file` | `file` is a type alias to one of the following implementations, depending on what is available on the target platform.
`file_stdio` | This implementation of File uses the C++ standard library facilities obtained by including `<cstdio>`.
`file_win32` | This implements a File for the Win32 API. It provides low level access to the native file handle when necessary.
`file_posix` | For POSIX systems, this class provides a suitable implementation of File which wraps the native file descriptor and provides it if necessary.