User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 456,504 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,666 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 888 | Replies: 2
Reply
Join Date: Sep 2007
Posts: 37
Reputation: annagraphicart is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
annagraphicart annagraphicart is offline Offline
Light Poster

Need to send output to notepad

  #1  
Sep 26th, 2007
I have output from my program.
I need it to be sent directly to Notepad or any other word processor.

How can I do that?

it's really important--thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Location: Manassas, VA USA
Posts: 72
Reputation: Clinton Portis is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Clinton Portis's Avatar
Clinton Portis Clinton Portis is offline Offline
Junior Poster in Training

Re: Need to send output to notepad

  #2  
Sep 26th, 2007
Including the <fstream> library will give ye' the tools you need to read and write to a file. Specifically, creating an object of type 'ofstream' will allow you access to library functions that write to a file.
Last edited by Clinton Portis : Sep 26th, 2007 at 3:56 am.
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Need to send output to notepad

  #3  
Sep 26th, 2007
And after writing the output to a file call system() (or some other similar os-specific function) to launch Notepad, for example
system("Notepad myfile.txt");
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 3:37 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC