C#高级控制台I / O [英] C# Advanced Console I/O

查看:183
本文介绍了C#高级控制台I / O的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我想用控制台做多个I / O任务:

I have multiple I/O tasks that I want to do with a console:


  • 打印出标准的,不可编辑的文本( Console.WriteLine()

  • 打印出的文本,用户可以编辑(

  • 允许用户输入,并通过两种方法之上()$ b能够输出文本$ b
    • Print out standard, non-editable text (Console.WriteLine())
    • Print out text that the user can edit (?)
    • Allow the user to type, and be able to output text via the two methods above (?)
      • It would be nice if I could do password masking too.

      任何人有任何解决方案?

      Anybody have any solutions?

      推荐答案

      编辑文字就像在一个基于控制台的文本编辑器?

      Edit text like in a console-based text editor?

      我认为,所有你需要的是在Console类,看看它的成员:

      I think all that you need is in the Console class, have a look at its members:

      http://msdn.microsoft.com/en-us/library/system.console.aspx

      这篇关于C#高级控制台I / O的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆