Y
Hacker News
new
|
ask
|
show
|
jobs
by
edwintorok
4350 days ago
You can also wrap the call-closure with an exception handler to make sure that 'f' is always closed when you leave with-open-file-for-writing.
1 comments
zem
4350 days ago
right. and the beautiful thing is that once you realise that you only need to do it once, not everywhere you open, write to, and close a file.
link