Snippets

Here is your code snippet

Code


Open and display a text file

This opens a file and displays the contents

<%
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("c:\Mydir\myfile.txt")
strText = objFile.ReadAll

objFile.close
Set objFile=nothing
Set objFSO=nothing

response.write(strText)
%>