« SQL Server SQL导入导出语句配置整合Win+Apache+PHP+MySQL+Tcomcat(或Resin)完全手册 »

文件操作类

文件操作类File:
<%
Class File

Private FSO
Private IPath
Private IContent

Public Property Let Path(ByVal PPath)
IPath = PPath
End Property

Public Property Get Path()
Path = IPath
End Property

Public Property Let Content(ByVal PContent)
IContent = PContent
End Property

Public Property Get Content()
Content = IContent
End Property

Private Sub Class_Initialize()
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
End Sub

Private Sub Class_Terminate()
Set FSO = Nothing
End Sub

Public Sub Save()
Dim f
Set f = FSO.OpenTextFile(Server.MapPath(Path), 2, true)
f.Write Content
End Sub

End Class
%>
原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。