C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I get the input stream in commandline application ?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Nelson
Guest





PostPosted: Mon Nov 27, 2006 10:10 am    Post subject: How can I get the input stream in commandline application ? Reply with 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
Back to top
Kai-Uwe Bux
Guest





PostPosted: Mon Nov 27, 2006 10:10 am    Post subject: Re: How can I get the input stream in commandline applicatio Reply with quote



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





PostPosted: Mon Nov 27, 2006 10:10 am    Post subject: Re: How can I get the input stream in commandline applicatio Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.