Using new automatic resource acquisition syntax on FileUtils.