I would like to read a large file in C++ in an asynchronous manner. I already use boost::asio to perform async reads from network sockets, and I wonder if it is possible to extend boost::asio to do non-blocking reads on regular files.
I could use a separate thread to do the job, but is there a more native solution, that would fit well with asio::io_service
?
I am using Linux, but I won't reject a portable solution with std::ifstream
;)