我有一個包含文本行的文本文件,我想一定行添加到一個列表框,如果下一行滿足例如條件C#添加從文本文件行到一個列表框
如果行以#開頭,則添加該行如果下一行與@開始後,所有的行與@
#add this line
@add this line
@add this line
@add this line
#dont add because the next line is not a @
#dont add because the next line is not a @
#dont add because the next line is not a @
#dont add because the next line is not a @
#add this line
@add this line
@add this line
#dont add because the next line is not a @
#add this line
@add this line
#add this line
@add this line
希望啓動,這使得現場的任何幫助將是巨大
[什麼都嘗試過你?](http://whathaveyoutried.com) – GameScripting
你爲什麼需要這樣一個瘋狂的濾波方案?!? –