programming-examples/asp/More_Code_Snippets/This opens a file and displays the contents.asp

10 lines
239 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
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)
%>