sloppycode.net
FSO Reference



File

The File Object allows you to access the properties of a file, or files if you have

a collection of file objects. It has 4 methods and 12 properties. It's worth noting

that a lot of the functionality of the File object can also be achieved using the

top (Main) class of the FSO, if you only want to perform an operation on a single file

that you know the name of.



For example fileObject.Delete, where you have a single file can just as easily be

achieved using fsoObject.DeleteFile, the File object is best suited for multiple files

in directories and subdirectories, where for example you may want to delete every file

in a directory that has certain file extension.



The object contains an OpenAsTextStream method, which opens the file as a text file.

This can also be done using the Main object's OpenTextFile (fsObject.OpenTextFile...).
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap





Buy on Amazon



Buy on Amazon



Buy on Amazon



Buy on Amazon