I would like to write files asynchronously. I have a class with a function that takes in a vector, and the file name, and sends it to the file. This function can be called a few thousands of time, from outside the class.
The reason why I want to perform write async is... caller can just request the write, then not have to worry about it or wait for the write to be complete.
I am not using sockets, tcp...
I am looking into boost:: asio, trying to find examples - all I can find are examples that use networking: http://liveworkspace.org/code/3R3RUd%240
Serialize and send a data structure using Boost?
boost::asio async_read guarantee all bytes are read
And more.
Can someone please suggest an example for file i/o ?
Is what I am asking making sense ?