close file atfer read in task2