Using Object in ASP

posted by Scudyen date: Thursday, May 22, 2008 category: ASP

To use an object in ASP, you should create an instance of an object. We use "CreateObject method" creating object. Let's see it on an real application.

Following example create an instance of FileSystem Object and uses in an real application.

<%
        Set objFlSys = Server.CreateObject("Scripting.FileSystemObject")
        strFile = Server.MapPath ("hitsOnDays.txt")
        Set objStreamOutput= objFlSys.OpenTextFile ( strFile, 8, TRUE)
        objStreamOutput.WriteLine Date() &  vbnewline
        Set objStreamOutput = Nothing       
%>  

Read More

Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net Listed with 4aspin.com