|
-
Apr 5th, 2002, 06:49 AM
#1
Thread Starter
New Member
How do you use redirection
I have Microsoft Visual C++ and i don't know how to use redirection to input in a file. can anyone help.
-
Apr 6th, 2002, 05:50 PM
#2
what do you want to redirect?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 7th, 2002, 06:25 AM
#3
Thread Starter
New Member
redirection
I want to use an input file and use redirection to input that file to my written program during execution
-
Apr 7th, 2002, 10:58 AM
#4
Open the file with CreateFile and pass the handle of it as the input handle to a call of CreateProcess that launches your program.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 7th, 2002, 10:59 AM
#5
Or write the command line like
myapp.exe < infile.txt
I think it still works.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|