use FileUtils instead of file