Online judge problem

when I am connecting the input file with .exe file it is showing the error

PS C:\Users\Hp\Desktop\c++> .\onlinejudge.exe< onlinejudge.txt
.\onlinejudge.exe< : The term ‘.\onlinejudge.exe<’ is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1

  • .\onlinejudge.exe< onlinejudge.txt
  •   + CategoryInfo          : ObjectNotFound: (.\onlinejudge.exe<:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Hello @jitin2430

Try and use command prompt (cmd) instead of windows powershell.

To open cmd
Hold windows button and press R
Type “cmd”
Hit Enter
Change directory to the one in which your onlinejudge.exe and onlinejudge.txt files are stored
give command onlinejudge.exe< onlinejudge.txt