« php 字符格式转换关键字 »

asp 读文件

function readfile(filename)
DataFile=filename
thefile=server.MapPath(datafile)
Set FSO = CreateObject("Scripting.FileSystemObject")
infile=fso.FileExists(thefile)
if infile then'文件存在
set file1=fso.OpenTextFile(thefile)
filestr=file1.readall
response.Write filestr
else
response.Write "错误,找不到文件"
response.end
end if
set fso=nothing
end function

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

网站目录

最近发表

最新评论及回复

文章归档

Search

Powered By Z-Blog 1.8 Terminator(beta) Build 71218 Designed by Michael

Powered By Z-Blog Copyright 0-9999 subin.org.cn Rights Reserved. 晋ICP备08000685号