OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


Textfile

Textfile

(data module) --

Syntax

Textfile self exp-list ed-mode

Slots

name data type(s) comments
self Textfile object  
exp-list a string containing data of any type  
ed-mode menu two options: append and supercede

Notes

The Textfile class permits you to import and export raw text data streams (files). The menu input, ed-mode , controls whether new elements present at the second input exp-list will replace the contents of the file (supercede) or be added to the end (append) when the Textfile is evaluated. A variable (see the chapter on Classes) may be created from a Textfile, from which the contents may be read via the get-set-slot mechanism.

See the reference for the Textfile editor for information on how to import and export textfiles.


Prev Home Next
Temporalbox Up Voice