Skip to content
Snippets Groups Projects
Commit f99b2f63 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: improve OFstream append behaviour (#3160)

- previous support for file appending (unused in the meantime)
  specified opening with `std::ios_base::app`. However, this also
  enforces append behaviour for each write operation and thus
  disallows any seek/repositioning within the output file.

  Now treat append as an "append-like" behaviour instead.

  If the file already exists, its contents will be preserved and
  the *initial* output position is moved to the file end. All
  subsequent write operations respect the current file position
  without an additional seek-to-end on each write. This enables
  support of file appending/overwriting, but does preclude concurrent
  file output.
parent a7538fab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment