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