Added FileMode

Currently FileMode does not support Append or Truncate but does support
all other modes.