<html>
<body>
<p>This is the first line of the text file:</p>
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject"
Set f=fs.OpenTextFile(Server.MapPath("testread.txt", 1)
Response.Write(f.ReadLine)
f.Close
Set f=Nothing
Set fs=Nothing
%>
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject"
Set f=fs.OpenTextFile(Server.MapPath("testread.txt", 1)
Do While Not f.AtEndOfStream
Response.Write(f.ReadLine)
Loop
f.Close
Set f=Nothing
Set fs=Nothing
%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.