Can't provide input through input.txt

In “$ Online Judge - Input & Output” bhaiiya shows that we can provide an input file to our executable c++ program as:

./filename < input.txt

but in windows powershell this throws an error:
"At line:1 char:11

  • .\nInputs < input.txt
  •       ~
    

The ‘<’ operator is reserved for future use."

how will this work in windows then?

@ankit-c11,
Don’t use powershell, use cmd.

doesn’t work on cmd either :sweat_smile:

@ankit-c11,
Try this.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.