Chapter 2 The File I/O Api; Accessing Configuration Folders; The File I/O Api - MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Macromedia Dreamweaver MX 2004 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
CHAPTER 2
The File I/O API
object.
DWfile
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents