fin.close() and fout.close()