if one won''t explicitly call the destructor of a local; then how does he handle the above situation?
A: Just wrap the extent of the lifetime of the local in an artificial block {...}:
void someCode()
{
{
File f;
...insert code which should execute while f is still open...
} f''s destructor will automatically be called here.
...insert code here which should execute after f is closed...}