Asp > Code Snippets
Read a line of text from a file
Read a line of text from a file <% Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("c:\testfile.txt") strText = objFile.ReadLine objFile.close Set objFile=nothing Set objFSO=nothing %> <% =strText %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML