Snippets

Here is your code snippet

Code


read a line

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