| View previous topic :: View next topic |
| Author |
Message |
Nelson Guest
|
Posted: Mon Nov 27, 2006 10:10 am Post subject: How can I get the input stream in commandline application ? |
|
|
Subject: How can I get the input stream in commandline application ?
Hi guys!
I have to get the input stream in my win32 commandline application.
Using another words, I want to catch content of input stream file
given like this:
myapp.exe < data.txt
How can I do it?
Thanks alot.
Nelson |
|
| Back to top |
|
 |
Kai-Uwe Bux Guest
|
Posted: Mon Nov 27, 2006 10:10 am Post subject: Re: How can I get the input stream in commandline applicatio |
|
|
Nelson wrote:
| Quote: | Subject: How can I get the input stream in commandline application ?
Hi guys!
I have to get the input stream in my win32 commandline application.
Using another words, I want to catch content of input stream file
given like this:
myapp.exe < data.txt
How can I do it?
|
The input stream is usually bound to std::cin from <iostream>.
Best
Kai-Uwe Bux |
|
| Back to top |
|
 |
Ondra Holub Guest
|
Posted: Mon Nov 27, 2006 10:10 am Post subject: Re: How can I get the input stream in commandline applicatio |
|
|
Nelson napsal:
| Quote: | Subject: How can I get the input stream in commandline application ?
Hi guys!
I have to get the input stream in my win32 commandline application.
Using another words, I want to catch content of input stream file
given like this:
myapp.exe < data.txt
How can I do it?
Thanks alot.
Nelson
|
Simply read from std::cin. |
|
| Back to top |
|
 |
|