Create a text file by ASP

Submitted by:Pitter Alderson

Date added:23 January, 2012

Category:ASP

How to create a text file named newtest.txt . here shown an example ASP code

Tags: create text file

Code Snippet:

<% 
Dim objFSO, objFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile("d:\newtest.txt", True)
objFile.WriteLine("This is a test.")
objFile.Close
%>
 
 

Comments