User Guide
17
1
CHAPTER 1
The File I/O API
Macromedia Dreamweaver 8 includes a C shared library called DWfile, which gives authors
of objects, commands, behaviors, data translators, floating panels, and Property inspectors the
ability to read and write files on the local file system. This chapter describes the File I/O API
and how to use it.
For general information on how C libraries interact with the JavaScript interpreter in
Dreamweaver, see “C-Level Extensibility” in Extending Dreamweaver.
Accessing configuration folders
On Microsoft Windows 2000 and Windows XP, and Mac OS X platforms, users have their
own copies of configuration files. Whenever Dreamweaver writes to a configuration file,
Dreamweaver writes it to the user’s Configuration folder. Similarly, when Dreamweaver reads
a configuration file, Dreamweaver searches for it first in the user’s Configuration folder and
then in the Dreamweaver Configuration folder. DWfile functions use the same mechanism.
In other words, if your extension reads or writes a file in the Dreamweaver Configuration
folder, your extension also accesses the user’s Configuration folder. For more information
about configuration folders on multiuser platforms, see Extending Dreamweaver.
The File I/O API
All functions in the File I/O API are methods of the DWfile object.
DWfile.copy()
Availability
Dreamweaver 3.
000_DW_API_Print.book Page 17 Wednesday, July 20, 2005 11:58 AM