Hi. Can someone help me with how to transfer/print your last output in a word file? I'm researching and can't find a way on C. My code in C so don't suggest solutions for C++ thank you :).
Trypanosoma 0 Newbie Poster
Recommended Answers
Jump to PostAll you have to do is redirect stdout to a file. For example if the name of your program is myprog then on the command line or in a batch file
myprog >myfile.txt
With that, all the stuff that is printed with printf() statements will be directed into the text …
Jump to PostThat will not create an MS-World document file, but just a plain text file. The *.doc file is normally MS-Word file format, not text file format. Don't confuse people by naming file with incorrect or non-standrd extensions.
All 5 Replies
Adak 419 Nearly a Posting Virtuoso
Trypanosoma 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
profyou 13 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
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.