RAII file handling in C++ C++ The stream closes itself when it leaves scope, whether the function returns normally or throws. Systems cpp raii files chris