我有以下內容的文本文件:解析文本文件不
Warning 18.05.2012 16:27:45 www.site.com 0 None BusyCount: 00:00:00.0000880
Warning 18.05.2012 16:27:45 www.site.com 0 None GetBusyPlace: 00:00:00.7759916
Warning 18.05.2012 16:27:44 www.site.com 0 None GetHallPlan: 00:00:00.0098537
Warning 18.05.2012 16:27:44 www.site.com 0 None GetSeatPrice: 00:00:00.1462649
Warning 18.05.2012 16:27:40 www.site.com 0 None BusyCount: 00:00:00.0000988
Warning 18.05.2012 16:27:40 www.site.com 0 None GetBusyPlace: 00:00:00.7330764
Warning 18.05.2012 16:27:39 www.site.com 0 None GetHallPlan: 00:00:00.0435432
我有三個數組:
List<string> getSeatPrice = new List<string>();
List<string> getBusyCounts = new List<string>();
List<string> getHallPlan = new List<string>();
我如何解析這個文本文件,並從中獲取時間字符串,例如GetBusyPlace: 00:00:00.7759916
並放在適當的數組?
謝謝
你試過了什麼?什麼是列分隔符? –