- mytee f1 f2 f3 → reads STDIN and outputs it to files in the argument, error if file(s) already exist
- mytee -a f1 f2 → append to files, create if doesn't exist
- mytee -t f1 f2 → truncate and write to files, create if doesn't exist
- Because the program writes to multiple files, it can be tricky to play with file descriptor array
- Figuring out where to stop the reading of STDIN, solved by reading the manual
- I use reference to pass around file descriptor array, which means I don't iterate every element of the array, this could cause safety problems