Asp > Code Snippets
This opens a file and displays the contents
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) %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML