programming-examples/asp/More_Code_Snippets/This will insert text into a file.asp

10 lines
238 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
strText="Sample text"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile("c:\testfile.txt", True)
objFile.Write (strText)
objFile.close
Set objFile=nothing
Set objFSO=nothing
%>