My goal is to have a vector fileList of type ofstream that I could later loop through to write the same information to each of them (copying at the end is not an option). The list of files comes from argv (processed by getopt).
I understand that I need to store a pointer to the file object. Googling I was unable to find any tutorial that deals with my issue.
Docs on the issue would be nice (code would be nicer....).