Just saw your comments about the cases...

This would be a perfect use for ini files. Look for EnumINI() here on the board, and readprofilestring() and writeprofilestring() in the manual.
_________________________
(... better days ahead)