|
fileDisplay
|
The fileDisplay function converts the expression {exp} to ascii text and
writes the text value of the expressions to the specified fileID {fileID}.
The fileID must be assigned from a previous fileOpen function. The fileDisplay
function always returns a Boolean value true. When to use Data is written to a file with the fileWrite, fileWriteln, fwriteln, fdisplay or fileDisplay functions,
however, records are not actually committed to the file until the file is closed.
Thus, attempting to read a record immediately after a fileWrite, fileWriteln, fwriteln, fdisplay or fileDisplay
will result in an error. In order to verify records that have been written, it is
necessary to close the file and save the file (fileClose with an option argument
equal to 1) . The file can then be re-opened and read with the fileRead function.
(fileDisplay fileID exp) Always the Boolean value, true.
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 fileID An Integer representing the fileID of the file which was opened with a fileOpen function. Integer exp An expression String Text ByteVector
Returns:
Examples
Argument Types
ByteVector
Text
Integer
Boolean
How do I contact the AIS team?