APLX Help : Help on APL language : APL Primitives : ⍈ File write
|
|
![]() |
|
The full form of R ← A ⍈ {[LIBRARY]} FILE,COMPONENT {,USER,PASSWORD} A is any APL variable. R (the result) is an empty vector with display potential off. LIBRARY number identifies the library volume number to which the file is to be written. If you omit the library number, library 0 is assumed. If included, the library number is put in square brackets. (See also FILE number identifies the file the data is to be written to (an integer). COMPONENT number is the identifying number which shows the way in which the variable is to be put into the file:
If C is omitted, it defaults to 0. USER number and PASSWORD are used for file security in shared file applications; the defaults are 1 3 7 ⍈ 6 2 (The vector 1 3 7 becomes component 2 of file 6 on library 0. If component 2 already exists it's overwritten.) VAR⍈[2]506 3 1075 (VAR is written to component 3 of file 506 belonging to user 1075 on library 2) (0 ⎕OV ⎕NL 3)⍈12 5 (All the functions in the workspace are filed as an overlay, into file 12 component 5 - see also ⎕NL, ⎕OV) A variant of Note: Writing an access matrix to a non-existent file is a way to create an empty file. A ⍈ {[LIBRARY]} -FILE {,COMPONENT,USER,PASSWORD} (1 2⍴1000 ¯1)⍈[3]¯9 (File 9 on library 3 is set to FULL access for the owner) |
|
APLX Help : Help on APL language : APL Primitives : ⍈ File write
|
Copyright © 1996-2010 MicroAPL Ltd