用asp實(shí)現(xiàn)讀取文件的最后一行的代碼
更新時(shí)間:2009年12月08日 02:18:47 作者:
asp 讀文件最后一行的函數(shù)代碼
復(fù)制代碼 代碼如下:
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
相關(guān)文章
再來個(gè)專門為google量身定做的sitemap生成代碼,(可是動(dòng)態(tài)的哦)
再來個(gè)專門為google量身定做的sitemap生成代碼,(可是動(dòng)態(tài)的哦)...2006-12-12
ReplaceSaveRemoteFile 替換、保存遠(yuǎn)程圖片 的代碼
ReplaceSaveRemoteFile 替換、保存遠(yuǎn)程圖片 的代碼...2007-09-09
四步完成asp網(wǎng)頁設(shè)計(jì)流量統(tǒng)計(jì)
這篇文章主要介紹了四步如何完成asp網(wǎng)頁設(shè)計(jì)流量統(tǒng)計(jì),感興趣的小伙伴可以參考一下2015-09-09
ASP生成數(shù)字相加求和的BMP圖片驗(yàn)證碼
以前我自己寫了個(gè)是文字的,但還是這個(gè)好,都是圖片的2008-08-08
asp 實(shí)現(xiàn)視頻顯示的效果函數(shù)
asp 實(shí)現(xiàn)視頻顯示的效果函數(shù)...2007-08-08
rs.open sql,conn,1,1與rs.open sql,conn,1.3還有rs.open sql,conn,
Rs.Open語法如下:rs.Open Source,ActiveConnection,CursorType,LockType Source為sql語句,ActiveConnection為數(shù)據(jù)庫連接,CursorType是游標(biāo),LockType是數(shù)據(jù)鎖定類型.2011-01-01

