日期:2014-05-17 浏览次数:21270 次
Dim txtfile '定义数组 For x = 1 to 500 txtfile(x) = FSOFileRead("abc/" & x & ".txt") Next function FSOFileRead(filename) Dim objFSO,objCountFile,FiletempData Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objCountFile = objFSO.OpenTextFile(Server.MapPath(filename),1,True) FSOFileRead = objCountFile.ReadAll objCountFile.Close Set objCountFile=Nothing Set objFSO = Nothing End Function