我有一个包含以下内容的文本文件:
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
并放入适当的数组中?
谢谢