How to parse a text file with C#

后端 未结 7 1905
面向向阳花
面向向阳花 2020-12-08 14:57

By text formatting I meant something more complicated.

At first I began manually adding the 5000 lines from the text file I\'m asking this question for,into my proje

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 15:11

    Try regular expressions. You can find a certain pattern in your text and replace it with something that you want. I can't give you the exact code right now but you can test out your expressions using this.

    http://www.radsoftware.com.au/regexdesigner/

提交回复
热议问题