I need to build an simple console application that accepts a pipe as input. We are running Windows Server 2012. The data is coming from another application that is going to "pipe" the input to this application. I have an understanding of pipes from a Linux perspective but do not understand them well from a Windows perspective.
My best guess is that I need to send input to my application like this: C:\app.exe < test.txt
When using the '<' character my current understanding is that it converts test.txt to a stream and will pass in a pointer.
My question is, can anyone give me an example of how to receive a stream pointer, or something equivalent to a pipe in windows in my application, so that I can read the input?