Home | Libraries | People | FAQ | More |
So why bother with Boost.AFIO? What's wrong with the STL iostreams and Filesystem?
The answer is that there is nothing wrong with either for 95% of use cases. Performance of both is pretty good in fact most of the time — which actually isn't that surprising as C++ is a pay-for-what-you-use systems language, and you'll see how well STL iostreams does later on in this tutorial.
However a surprising amount of production code out there is highly unreliable when used on a filing system experiencing rapid change, or even just a filing system mounted on a network. In many ways it is when your code needs to “grow up” from assuming a never changing static filesystem into a more realistic model is when you ought to reach AFIO which has hopefully abstracted away all those tedious platform specific and filing system specific quirks for you.
The quick start tutorial is broken into two sections: