Y must be a simple integer scalar or a 1 or 2 element vector. The first element is the file tie number. The second element, if specified, must be 641This element sets the span of the file which in earlier Versions of Dyalog APL could be 32 or 64. Small-span (32-bit) component files may no longer be created and this element is retained only for backwards compatibility of code..
The file tie number must not be the tie number associated with another tied file.
X must be either:
- a simple character scalar or vector as above.
- an integer scalar specifying the file size limit in bytes.
The newly created file is tied for exclusive use.
The shy result of ⎕FCREATE is the tie number of the new file.
A tie number of 0 as argument to a create or tie operation, allocates, and returns as an explicit result, the first (closest to zero) available tie number. This allows you to simplify code. For example:
from:
tie←1+⌈/0,⎕FNUM ⍝ With next available number, file ⎕FCREATE tie ⍝ ... create file.
to:
tie←file ⎕FCREATE 0 ⍝ Create with first available..
'..\BUDGET\SALES' ⎕FCREATE 2 ⍝ Windows '../budget/SALES.85' ⎕FCREATE 2 ⍝ UNIX 'COSTS' 200000 ⎕FCREATE 4 ⍝ max size 200000
⎕FCREATE allows you to specify properties for the newly created file via the variant operator ⍠ used with the following options:
The Principal Option is as follows:
See also: File Properties .
'newfile' (⎕FCREATE⍠3) 0 1 'SEUJCZ' ⎕FPROPS 1 64 0 1 3 1 0
Alternatively:
JFCREATE←⎕FCREATE ⍠ 3
will name a variant of ⎕FCREATE which will create component file with level 3 journaling, and checksum enabled. Then:
'newfile'JFCREATE 0 1