Example String fileReadRecord 001
|
This example writes a file, closes the file and opens
the file for reading. Then it uses the fileReadRecord
function in the readTestFile child Lambda to get the buffer of the
file. After getting the buffer, the fileReadRecord then uses
the buffer to return the end-of-line terminated record which is returned
as a string String Object.
Returns:
(fileWriteln fileID n #\tab "some text" )
) Returns:
Returns:
Returns:
Returns:
(while (<> aLine #void) do
(setq aLine (fileReadRecord fileID aBuffer))
(writeln aLine)
) Returns:
1 some text
2 some text
3 some text
4 some text
5 some text
6 some text
7 some text
8 some text
9 some text
#void
Returns:
Here are examples of the fileReadRecord function at work.
String fileReadRecord 001 |
Here is the link to the current function used in this example.
Here are a number of links to other related functions.
fileRead(#void) | fileClose(#void) | fileOpen(#void) |
Here are the links to the data types of the arguments used in this example. Here are a number of links to examples having similar argument types.
Character
String
ByteVector
Analytic Information Server (AIS)AIS Component Systems
|