|
fileOpen
|
The fileOpen function attempts to create or open a file with the specified
filename {filename} and type {type} indicated. If no filename is
specified, the host will allow the user to select the file. When to use The fileOpen function opens an existing file or creates a new file
and opens it.
(fileOpen filename mode type) An Integer file identifier, fileID, is returned.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types filename Optional argument. The name of the file to be opened. This name may include a
full path specification. Note: On some host systems, if the file name is #void
or missing, a user dialog box appears allowing the user to choose the file. Text String mode The mode switch. A value of: (0) requests that only an existing file be opened; (1) indicates that a new file will be created.
If a file already exists with this name, it will be destroyed and a new virgin file will
be created; (2) valid for database files only, indicates that an existing database
file be opened for read only transactions shared with other users. Integer type The file type switch. (0) requests that a text file be opened; (1) requests that a
Spreadsheet binary file be opened;(2) requests that a Smarttable binary file
be opened; (3) requests that a Workspace binary file be opened; (4) requests that an
Object binary file be opened; (5) requests that an Object Database file be opened. Integer
Returns:
Examples
Argument Types
ByteVector
Text
Integer
Boolean
How do I contact the AIS team?