in reply to Problem unlinking files

maybe you didn't do close FILE; before you unlink it?