closeFile should be done, deleteFile almost done
merge conflict