Perform a low level file synchronization.
void sync( error_code& ec);
The file must be open with a mode allowing writes.
Set to the error, if any occurred.