Files

The following interfaces are used to get information about local files and directories. Files can be read using input streams and written to using output streams. The main file interfaces is nsIFile and its subinterface nsILocalFile.

the nsIFile interface is used for holding a file reference. You should always use an nsIFile rather than a string file path to ensure that your application will be portable. The nsIDirectoryServiceProvider interface can be used to get pointers to known system directories.

nsIDirectoryEnumerator
nsIDirectoryService
nsIDirectoryServiceProvider
nsIDirectoryServiceProvider2
nsIFile
nsIFileInputStream
nsIFileOutputStream
nsILocalFile
nsILocalFileMac
nsILocalFileOS2
nsILocalFileWin

@mozilla.org/directoryiterator;1
@mozilla.org/file/directory_service;1
@mozilla.org/file/local;1
@mozilla.org/network/file-input-stream;1
@mozilla.org/network/file-output-stream;1
@mozilla.org/network/safe-file-output-stream;1

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com