I am trying to write a program where I have to use file redirection to cin text from another text file. I'm seeing that I should be able to use .\a.exe < inputFile.txt, but for whatever reason my windows terminal does not recognize "<". This is the error I got :
At line:1 char:14
+ .\a.exe 1000 <input1L.txt
+ ~
The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported
I don't know why it's not recognizing it and I don't know how to fix it.