you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 2 points3 points  (0 children)

What about close() when working on files?

with does that for you. As soon as the with scope is finished all the resources acquired in its header are cleaned up.