Code for File System Object

Here is a sample code on how to work with File System Object. The below written code only creates a Test file named as Log.

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = objFSO.CreateTextFile("D:\Log.txt")

we need close the objects
Code for File System Object Code for File System Object Reviewed by Animesh Chatterjee on March 24, 2010 Rating: 5

No comments:

Powered by Blogger.