Y
Hacker News
new
|
ask
|
show
|
jobs
by
Gaelan
3155 days ago
GC helps with file handles. Just give the "file" object a destructor that closes the underlying handle.
1 comments
vpalanc1
3154 days ago
... and, it will be eventually closed. Maybe. Definitely before the program quits. Not sure that it'll be closed before you run out of file handles, though.
link