how to write into the file at the same time display at screen?if there a command that do it?
amen 0 Newbie Poster
Recommended Answers
Jump to PostI think there there is a *nix shell conmmand that will do it (tee ??) but not in MS-Windows. you might put the output lines into a function then call it twice
void foo(ofstream& out) { out << "Hello World " << endl; } int main() { …
All 2 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.