Input file is deleted after it is read in