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