Discussion:
Redirected data getting in my program
(too old to reply)
Jawade
2007-12-29 19:14:13 UTC
Permalink
How can i get redirected data in my own program, like this:
echo data|myprog.exe
I 'd like the 'data' in myprog.exe to parse it.
--
Met vriendelijke groeten, Jawade. Weer veel vernieuwd!
http://jawade.nl/ Met een mirror op http://jawade.fortunecity.com/
Bootmanager (+Vista), ClrMBR, DiskEditors, POP3lezer, Filebrowser,
Kalender, Webtellers en IP-log, Linux-Diskeditor, USB-stick tester
Robert Riebisch
2007-12-29 21:00:29 UTC
Permalink
Post by Jawade
echo data|myprog.exe
I 'd like the 'data' in myprog.exe to parse it.
Just read from STDIN. How, depends on your compiler.
--
Robert Riebisch
Bitte NUR in der Newsgroup antworten!
Please reply to the Newsgroup ONLY!
Jawade
2007-12-30 11:27:10 UTC
Permalink
Post by Robert Riebisch
Post by Jawade
echo data|myprog.exe
I 'd like the 'data' in myprog.exe to parse it.
Just read from STDIN. How, depends on your compiler.
Thank you, I'll try it in C.
--
Met vriendelijke groeten, Jawade. Weer veel vernieuwd!
http://jawade.nl/ Met een mirror op http://jawade.fortunecity.com/
Bootmanager (+Vista), ClrMBR, DiskEditors, POP3lezer, Filebrowser,
Kalender, Webtellers en IP-log, Linux-Diskeditor, USB-stick tester
Robert Riebisch
2007-12-30 21:14:55 UTC
Permalink
Post by Jawade
Post by Robert Riebisch
Just read from STDIN. How, depends on your compiler.
Thank you, I'll try it in C.
C is a language, not a compiler.
--
Robert Riebisch
Bitte NUR in der Newsgroup antworten!
Please reply to the Newsgroup ONLY!
Jawade
2007-12-30 21:43:23 UTC
Permalink
Post by Robert Riebisch
Post by Jawade
Post by Robert Riebisch
Just read from STDIN. How, depends on your compiler.
Thank you, I'll try it in C.
C is a language, not a compiler.
Of corse, I mean it's compiler. :-)
--
Met vriendelijke groeten, Jawade. Weer veel vernieuwd!
http://jawade.nl/ Met een mirror op http://jawade.fortunecity.com/
Bootmanager (+Vista), ClrMBR, DiskEditors, POP3lezer, Filebrowser,
Kalender, Webtellers en IP-log, Linux-Diskeditor, USB-stick tester
Jim Langston
2007-12-30 22:41:22 UTC
Permalink
Post by Robert Riebisch
Post by Jawade
Post by Robert Riebisch
Just read from STDIN. How, depends on your compiler.
Thank you, I'll try it in C.
C is a language, not a compiler.
Yes, but it works in all version of C. It's in the standard.

Same with C++, it works on all compilers, it's in the standard.
--
Jim Langston
***@rocketmail.com
Loading...