Use block-form of File.open