2017-01-18 44 views
-3

我的文本文件:如何使用c#從文本文件中讀取兩個字符串之間的文本?

Users of Yamaha: (Total of 1 bike issued; Total of 1 bike in use) 
     bike details 
     1001 Dinesh , start Fri 1/13 8:55 
    Users of Hero: (Total of 1 bike issued; Total of 1 bike in use) 
     bike details 
     1002 Monika, start Fri 1/13 9:55 
    Users of Honda: (Total of 2 bike issued; Total of 1 bike in use) 
     bike details 
     1003 Monikadinesh, start Fri 1/13 5:55 

在這裏,我想提取2 strings.Here之間的界線我要追加行成一個字符串。我想提取兩個之間的用戶線。

我提取的字符串會是這樣:

//**The content lie between two users of** 
    (Total of 1 bike issued; Total of 1 bike in use)Append it in multi array. 
       bike details 
       1001 Dinesh , start Fri 1/13 8:55 

我不知道如何解決我problem.Help我解決this.Thanks提前

+0

可能重複[獲取字符串中兩個字符串之間的字符串](http://stackoverflow.com/questions/17252615/get-string-between-two-strings-in-a-string) – rene

回答

相關問題