Im building a small application that, has 3 classes: MEMBER, VIP, ADMIN.
they also derive in that order., a vip is a member, and a admin is a vip.
but ofcourse how can my program be usefull if i cant save my data to a file? so i decided to start thinking of ways to save it to a file.
the binary way seems the best to me... one problem, when the program runs you are prompted to either
LOGIN will be the problem... how can i check the saved password in my binary file if i dont know if the user is a vip, member, or admin? cause these classes have diffrent sizes... i might put my file pointer at the wrong location.
anny advice, tips or solutions?
If i am unclear in anny way, please tell me so i can try and rephrase