Open()

Synopsis:

#include <aoi.h>

AOIStream_t *(*Open)(const char *name,
                     const char *mode);

Arguments:

name
The name of the stream you want to open.
mode
The mode you want to open the stream in. The mode string should match modes for fopen(), such as:
rb
Read binary.
wb
Write binary.

Description:

This function should open the stream with the given name in the mode.

Returns:

A pointer to an AOIStream_t instance, or NULL if the function can't open the given stream in the given mode.