| To read the article online, visit http://www.4GuysFromRolla.com/webtech/faq/FileSystemObject/faq1.shtml |
|
The FileSystemObject, or FSO, is an often used component to access the web server's file system. For example, you can create files, read the contents of files, determine whether or not a folder or file exists, iterate through the contents of a folder or directory, or any other number of file system-related tasks. You can create an instance of the FileSystemObject component in an ASP page with the following code:
Once you create an instance of this component, you can access its many properties and methods. For example,
say that you wanted to output the contents of the text file
We'll look at reading text files in more detail in the next FAQ. For now, just understand that the FileSystemObject's purpose is to allow an ASP page (or VB program, or WSH file) to have access to the machine's file system. Since your ASP pages reside and are executed on the web server, when using FSO to access the file system, you are accessing the web server's file system. You cannot access the client's file system using the FileSystemObject in your ASP code.
One important thing to keep in mind when using the
|
| Article Information | |
| Article Title: | What is the FileSystemObject? |
| Article Author: | Scott Mitchell |
| Article URL: | http://www.4GuysFromRolla.com/webtech/faq/FileSystemObject/faq1.shtml |
Copyright 2010 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers