finish fileio