-
June 5th, 2006, 12:41 AM
#1
file output into file?
Hello. I need to find a way to route the output of my program into a file. Let's say I compiled a simple .CPP file. After starting it, I want the output to be stored in a text file.
I tried to achieve that through the command prompt with: program.exe > output.txt, but that doesn't help me, as my .cpp program has a small menu, and needs keyboard input.
Any help is appreciated
-
June 5th, 2006, 01:09 AM
#2
Re: file output into file?
How to spawn console processes with redirected standard handles
There are also a lot of threads that have ben discussed in this forum, a search should give u many hits
- Sreehari
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
" Everybody is sent to Earth on a purpose. I am so Lagging behind that i won't die." – Calvin
-
June 5th, 2006, 09:06 AM
#3
Re: file output into file?
-
June 5th, 2006, 10:14 AM
#4
Re: file output into file?
Is there a way to redirect standard handles of the current process rather than of a child process?
Please don't forget to rate users who helped you!
-
June 5th, 2006, 11:42 AM
#5
Re: file output into file?
What "output" exactly do you want to redirect?
-
June 5th, 2006, 02:28 PM
#6
Re: file output into file?
Hello
I dont get it, why dont you just open a file?
search help for FILE * or the newer CFile class
Regards
"trampling out the vintage"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|