Tag Link | [File] | Category | File |
---|---|---|---|
Type | Substitution | Source Available | Yes |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | File | Security | Tag, File |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Casts a file as an object. Requires the name and path to a file as a parameter, in addition to the open and read mode indicators.
When a file connection is opened using the [File] tag, several different open modes can be used. These modes optimize the file connection for best performance depending on the purpose of the connection. A read mode may also be specified to determine how the file will be read (by line or by character). The open and read modes are described below.
[Var:'File Variable'=(File: 'file name', Open Mode, Read Mode)]
Required Parameters | |
---|---|
'File path' | The name and path to a file. |
Open Mode | The open mode defines the purpose and permissions of the file connection, and may be one of the following values: |
Read Mode | The read mode defines whether the file will be read by line or by character when using the [File->Get] tag, and may be one of the following values: |
To cast a file as an LDML object:
Use the [File] tag. The example below casts a local file named myfile.txt as an LDML object in read
[Var:'File'=(File: 'myfile.txt', (File_OpenRead), (File_ModeChar))]
Substitution | ||
---|---|---|
|
|
|