草庐IT

stringReaderObject

全部标签

c# - 在 C# 中每行读取一个字符串行

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:Easiestwaytosplitastringonnewlinesin.net?我试图读出并解释每行一行字符串。我看了一下StringReader类,但我需要找出我在最后一行的时间。这是我要完成的一些伪代码:while(!stringReaderObject.atEndOfStream()){interpret(stringReaderObject.readLine());}有人知道怎么做吗?谢谢!伊万