
ASP Read From File
The following script will read from the following text file “asptext.txt” on your server.
Script Source
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(Server.MapPath("asptext.txt"), 1)
Response.Write(f.ReadAll)
f.Close
Set f=Nothing
Set fs=Nothing
%>
Please let me know if this script was helpful to you.
[rating]