try and read file *before* deleting categories

Better safe than sorry : fopen() and exit if it fails *before* deleting categories, if 'force' option was used.