Table 5 File open modes

Mode    Meaning (stdio equivalent)
---------------------------------------------------
in         Open for input ("r")
out        Open for output ("w")
ate        Position at end of file
bin        Binary mode ("b")
trunc      Discard existing contents
app        Position for output at end of file ("a")
nocreate   Fail if doesn't already exist
noreplace  Fail if already exists
(The last three are not part of draft standard C++)