(C) 1998 AROS - The Amiga Research OS
r: Open for reading. The stream is positioned at the beginning of the file.
r+: Open for reading and writing. The stream is positioned at the beginning of the file.
w: Open for writing. If the file doesn't exist, then it is created. If it does already exist, then it is truncated. The stream is positioned at the beginning of the file.
w+: Open for reading and writing. If the file doesn't exist, then it is created. If it does already exist, then it is truncated. The stream is positioned at the beginning of the file.
a: Open for writing. If the file doesn't exist, then it is created. The stream is positioned at the end of the file.
a+: Open for reading and writing. If the file doesn't exist, then it is created. The stream is positioned at the end of the file.
b: Open in binary more. This has no effect and is ignored.