VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Opens a file called testfile.txt and reads the first line.

by KakiSOFT (2 Submissions)
Category: Active Server Pages
Compatability: ASP (Active Server Pages)
Difficulty: Unknown Difficulty
Originally Published: Wed 19th December 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Opens a file called "testfile.txt" and reads the first line.

Rate Opens a file called testfile.txt and reads the first line.



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

Download this snippet    Add to My Saved Code

Opens a file called testfile.txt and reads the first line. Comments

No comments have been posted about Opens a file called testfile.txt and reads the first line.. Why not be the first to post a comment about Opens a file called testfile.txt and reads the first line..

Post your comment

Subject:
Message:
0/1000 characters