Save name of the last file in a file