programming-examples/asp/More_Code_Snippets/This opens a file and displays the contents.asp
2019-11-18 14:25:58 +01:00

10 lines
239 B
Plaintext

<%
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)
%>