I Have 3 Functions,
1 Addmember
2 Deletemember
3 UpdateFileNum
now, when a member is added to my file, i want that the function UpdateFileNum reads a number from a file and increases that number and write it to an other file
when a member is deleted, i want the opposite to happen, the function UpdateFileNum reads a number from a file and decreases that number and write it to an other file
How can i do this? i do not want to write 2 diffrent functions... ( because i need more things to be done and it would take a lot of time and thinking