TextSerializer.open Member

open(direction)

Syntax

object.open(dir);

Arguments

ArgumentSummary
dir

Returns

Remarks

Opens the serializer on the file specified when created, in either the read ("<") or write (">") directions. When the file is open, only the appropriate direction of serialization/deserialization may be performed.

Note: serialize and deserialize automatically open the file if it is not
      open.

See Also

Source Code

function ts_open(dir)
{
if (!ASSERT((dir == ">") || (dir == "<"), "Bad serialization direction!"))
return false;
if (this._open)
return false;
this._fileStream = new LocalFile(this._file, dir);
if ((typeof this._fileStream == "object") && this._fileStream)
this._open = true;
return this._open;
}