`file` would be a more descriptive variable name for `f`.