|
fileWriteln
|
The fileWriteln function converts the expressions to ascii text and
writes the text value of the expressions to the specified fileID, {fileID},
(see the fileOpen function). The fileWriteln function always adds the
_eol character sequence at the end of each line before writing to the file. When to use Data is entered into a file with the fileWrite, fileWriteln,, 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,
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.
(fwriteln fileID exp) If the fwriteln is successful, the Boolean value, true 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 fileID An Integer representing the fileID of the file returned from a previous
fileOpen function. Integer exp An expression. Symbol ByteVector Text String
Returns:
Examples
Argument Types
ByteVector
Text
Integer
Boolean
How do I contact the AIS team?