FreeSwitch Javascript File open

FreeSwitch is an open-source telephony application capable of being a class 4 or class 5 soft-switch as well as a PBX. Freeswitch runs on linux, OSX, windows, *BSD and many other platforms. It is licensed under the MPL (Mozilla Public License) version 1.0. FreeSwitch was written from the ground up as a new application and is not a fork of any other application.

Description

Opens a file handle

Synopsis

open(mode)
  • mode - a comma seperated list of the file modes
    • read - open for reading
    • write - open for writing
    • readWrite - open for reading and writing
    • append - add to the end of a file
    • create - create the file if it doesnt exist
    • replace - replace the contents with new ones (truncate)
    • autoflush - auto flush the buffer when writing

Example

var fd = new File("/tmp/blah");
fd.open("read,write,create");


Related


FreeSwitch is an open-source telephony application capable of being a class 4 or class 5 soft-switch as well as a PBX. Freeswitch runs on linux, OSX, windows, *BSD and many other platforms. It is licensed under the MPL (Mozilla Public License) version 1.0. FreeSwitch was written from the ground up as a new application and is not a fork of any other application.

Description

Opens a file handle

Synopsis

open(mode)
  • mode - a comma seperated list of the file modes
    • read - open for reading
    • write - open for writing
    • readWrite - open for reading and writing
    • append - add to the end of a file
    • create - create the file if it doesnt exist
    • replace - replace the contents with new ones (truncate)
    • autoflush - auto flush the buffer when writing

Example

var fd = new File("/tmp/blah");
fd.open("read,write,create");


Related


Created by: trixter, Last modification: Tue 22 of Aug, 2006 (03:42 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+