c - Redirecting standard input\output in Windows Powershell -


What is the syntax required to redirect standard input / output to Windows PowerShell?

On Unix, we use:

  $ / Programs & lt; Input.txt & gt; Output.txt   

How do I execute the same task in PowerShell?

You can not hook the file directly to stdin, but you can still access stdin .

  Go-content input. Txt | ./program & gt; Output.txt    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -