Close file after read it.