Opens a file called testfile.txt and reads the first line.
Opens a file called "testfile.txt" and reads the first line.
Rate Opens a file called testfile.txt and reads the first line.
(3(3 Vote))
<HEAD>
</HEAD>
<BODY>
<%@ LANGUAGE="VBScript" %>
<%
dim fso
dim infile
set fso = CreateObject("Scripting.FileSystemObject")
set infile = fso.OpenTextfile(Server.MapPath("testfile.txt"))
Response.Write "<B>First line: <FONT COLOR=BLUE>" & infile.readLine() & "</FONT></B>"
%>
</BODY>
</HTML>
Opens a file called testfile.txt and reads the first line. Comments
No comments yet — be the first to post one!
Post a Comment