XD-1305 File Sink now supports configurable modes

Originally the file sink only supported the append mode.
Now supports APPEND, REPLACE, FAIL IGNORE