源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

用asp实现读取文件的最后一行的代码

  • 时间:2020-01-24 10:27 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:用asp实现读取文件的最后一行的代码
[u]复制代码[/u] 代码如下:
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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部