How to save the output of a console application

后端 未结 6 1177
有刺的猬
有刺的猬 2021-01-11 19:12

I need advice on how to have my C# console application display text to the user through the standard output while still being able access it later on. The actual feature I w

6条回答
  •  盖世英雄少女心
    2021-01-11 19:58

    Probably not what you want, but just in case... Apparently, PowerShell implements a version of the venerable tee command. Which is pretty much intended for exactly this purpose. So... smoke 'em if you got 'em.

提交回复
热议问题