m_Root is the file name and can use a relative path.
Calling example:
Response.Write(LoadFile("Test.htm"))
FunctionLoadFile(m_Root)
DimFilename,fso,hndFile
Filename=m_Root
IfRight(Filename,1)<>"/"AndRight(Filename,1)<>"/"ThenFilename=Filename&"/"
Filename=Server.MapPath(Filename&m_FileName)
Setfso=CreateObject("Scripting.FileSystemObject")
IfNotfso.FileExists(Filename)ThenShowError("Template File"&m_FileName&"Don't exist!")
setthndFile=fso.OpenTextFile(Filename)
LoadFile=hndFile.ReadAll
SethndFile=Nothing
Setfso=Nothing
IfLoadFile=""ThenShowError("Template file cannot be read"&m_FileName&" or the file is empty!")
EndFunction
Articles that may be of interest to you:
Summary of the fast power modulus algorithm of C language js modulus (find remainder) interlaced color-changing php string intercept Chinese intercept 2, single-byte intercept mode audit strategy in group strategy prompts Windows cannot read template information Solutions for the solution of the arrangement and combination problem implemented by C language general algorithm and solution to the in-depth analysis of recursive algorithm in C language implementation of C language sorting algorithm. Combination sorting algorithm detailed explanation of C++ fast power and large number modulus algorithm example