Files tuple

file tuple works, bug happened when closing files, said it was closing
and writing the same time