programming-examples/asp/More_Code_Snippets/Read a line of text from a file.asp

12 lines
235 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
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>