c++ library to read files in one go