Hello, forum :)
Does anyone know a c++ code that performs the same actions as a "tee" command does in linux? Basically what the tee command does is read an input from an input stream and directs it to two places:
1) Displays the input stream on the screen
2) Saves the input stream to a specified file
The documentation for a tee command can be found here. In that example, the tee command performs one more action: word count. I am not so worried about implementing this into my code; I just want to be able to read in all the text files and display it on the screen as well as save it to another text file.
Any suggestions would be great.
Thanks.