< redirect data from file, win32 vs Linux

Hi,
I have app that take data from file as argument from command line like this:
$> app.exe < input.txt

So it works fine on LInux, but doesn't want to work on Win32,
my code (it's not mine originally;-) with
cin.getline(WinBuffer,InputSize); return nothing on Win, there is a chance that it got lost, I used debugger and could not see it anywhere.

Without getting into code details..
Is this supposed to be like this in Win32, does it support "<" in this content?
I thought that theory says that it should work, at least I able to run:
c> sort <input.txt in dos without any problem.

Tx for your comments and pointers.
BEst
M
Last edited on
Topic archived. No new replies allowed.