def props = new Properties() new File("foo.properties").withInputStream { s -> props.load(s) }println props
def props = new Properties() new File("foo.properties").withInputStream { s -> props.load(s) }