-
UID:175553
-
- 注册时间2008-11-05
- 最后登录2018-02-12
- 在线时间3876小时
-
- 发帖16250
- 搜Ta的帖子
- 精华12
- 黑豆-2
- 威望45224
- 贡献值2
- 交易币0
- 红豆0
-
访问TA的空间加好友用道具
- 发帖
- 16250
- 黑豆
- -2
- 威望
- 45224
- 贡献值
- 2
- 交易币
- 0
- 红豆
- 0
|
asp 读文件最后一行的函数代码 复制代码代码如下:
function FSOlastline(filename) dim fso,f,temparray,tempcnt set fso = server.CreateObject("scripting.filesystemobject") if not fso.fileExists(server.mappath(filename)) then exit function set f = fso.opentextfile(server.mappath(filename),1) if not f.AtEndofStream then tempcnt = f.readall f.close set f = nothing temparray = split(tempcnt,chr(13)&chr(10)) FSOlastline = temparray(ubound(temparray)) end if end function
|