Hacker News new | ask | show | jobs
by bowyakka 4961 days ago
Doesn't this amount to the same thing ?
1 comments

it accomplishes the same purpose, but the filehandle gets closed explicitly, not when it goes out of scope and its destructor gets called.