Guys I'm rather desperate cause i cant think of a way to solve my current homework:
I have to handle a message system:
when it recive a message it shall create a new txt file and write it in.
on command it should be able to write a part of all messages (in different txt files) in the order it recived them.
The problem is i have not the slightest clue whats a good way to construct the classes/methods/values.
Of course i don't want you to make my homework. But a push in the right direction would be nice =)
My first idea:
output creats list a list object that handles strings. output calls function that gets all filenames and puts them in the list (this.getnames(*list);), output function works through list and calls this.getfile for each element in list.