Skip to content

Closing what the collector will not

A file is opened and the variable goes out of scope without close being called.

Why is this a problem in a garbage collected language?