asio::file_base::append has no effect when opening asio::stream_file on windows due to the lack of equivalent functionality of O_APPEND for Window APIs.
The workaround is to move the file offset to the end after opening the file for the win_iocp_file_service::open(), or the documentation should mention such limitation ?
O_APPEND: always write the data to the end of file no matter where the file offset is.
asio::file_base::append
has no effect when openingasio::stream_file
on windows due to the lack of equivalent functionality ofO_APPEND
for Window APIs.The workaround is to move the file offset to the end after opening the file for the
win_iocp_file_service::open()
, or the documentation should mention such limitation ?O_APPEND
: always write the data to the end of file no matter where the file offset is.