Thanks! Pity that there's no support for an encoding argument, but maybe these days most files are binary or utf-8 anyway.
If I was processing a _lot_ of files:
for filename in getFiles():
var fh = open(filename)
defer: close(fh)
process(fh)
# is this where the file is closed,
# i.e., at the end of each loop iteration?
