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 PostIf by "word file" you mean a text file, just use fopen() with the name of the file (surrounded by double quotes), and the file access mode of "w", and after you've written out your text, fclose(filePointerName), the file.
If you mean export your C text file, in Word …
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.