The File class should close itself from the destructor
Doing this in a destructor is the only place where we can guarantee that no open file descriptors will be left behind.
parent
17bac77e
Please register or sign in to comment
Doing this in a destructor is the only place where we can guarantee that no open file descriptors will be left behind.