void method(std::ostream &output){
cout << "some text";
}
int main(){
method(std::cout);
}
This gets added to my file when I run my program like this ./program arg > file.txt
How can I run this program so that this prints out to the file but also has separate printing for the console?