view asp from asp





-2
Date Submitted Tue. Feb. 28th, 2006 5:34 AM
Revision 1 of 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
A painfully simple method of viewing the contents of an ASP script via an ASP script.
Dim FileObject, oInStream
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
Set oInStream = FileObject.OpenTextFile (Server.MapPath(Request("source")), 1, FALSE, 0)
On error resume next
While NOT oInStream.AtEndOfStream
Response.Write Server.HTMLEncode(oInStream.ReadLine)
Wend
 

Comments

There are currently no comments for this snippet.

Voting