MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual page 23

Table of Contents

Advertisement

File Reference object
The File Reference object is used to refer to a specific open file. The following table lists the
methods of the File Reference object, along with their data types and, where appropriate,
acceptable values and notes.
Method
close()
readline()
write(textString)
Find object
There are several ways to specify a Find object, depending on what you want to find and
replace. Use the
whatToFind
properties that are associated with each legal value for
in the following tables. Read-only properties are marked with a bullet (•).
Finding and replacing text
Property
whatToFind
find
matchCase
regExp
Data Type
Notes
none
Closes the current File Reference
object. You are not required to use this
method (the file is closed when the Files
object is destroyed), but it is useful for
controlling access to a file.
none
Reads the next line from the current File
Reference object and returns it as a string.
The end-of-line character(s) are not
included in the string. Returns
of-file is reached or if the line is longer than
2048 characters.
string
Writes the specified string to the current
File Reference object. No end-of-line
characters are appended; to include one,
use
property to specify the type of find operation, along with the
Data type
Notes
string
In the format:
string
Text to find.
Boolean
If set to
Defaults to
Boolean
If set to
interpreted as a regular expression. The
default is
.
"\n"
. These properties are listed
whatToFind
"text"
, the search is case-sensitive.
true
.
false
, the find and replace text is
true
.
false
if end-
null
Core objects
23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks 8

Table of Contents