最近在做一个网站访问统计系统,数据采集是通过读取IIS服务器日至文件的方式进行的。下面这段日至:
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2006-04-06 02:23:01
#Fields: time c-ip cs-method cs-uri-stem sc-status 
02:23:01 211.68.41.66 GET /index.htm 200
02:23:01 211.68.41.66 GET /main.css 404
02:23:01 211.68.41.66 GET /images/index_02.gif 304
02:23:01 211.68.41.66 GET /images/index_06.gif 304
02:23:01 211.68.41.66 GET /images/index_05.gif 304
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2006-04-06 02:24:01
#Fields: time c-ip cs-method cs-uri-stem sc-status 
02:24:01 211.68.41.66 GET /index.htm 304
02:24:01 211.68.41.66 GET /main.css 404
02:24:01 211.68.41.66 GET /images/index_01.gif 304
02:24:01 211.68.41.66 GET /images/index_03.gif 304
02:24:01 211.68.41.66 GET /images/index_04.gif 304
如果服务器重起的话,中间会插入四行服务器描述,我怎么能跳过这四行,继续读呢?
非常感谢您的解答!!