Snippets

Here is your code snippet

Code


Insert text into a file

This will insert text into a file

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