READY:. (If unsuccessful, the previous
information about return codes applies.)
The default for OPEN is to open the stream for both reading and writing data,
for example: 'OPEN BOTH'. To specify that the
stream be only opened for input or output,
add READ or WRITE, to the command string. RECLENGTH option with a length equal to
that of the file). The length must be
1 or greater.
stream~command("open")
stream~command("open write")
stream~command("open read")
stream~command("open read shared")
command
method with the CLOSE option returns READY:
if the stream
is successfully closed or an appropriate error message otherwise. If an attempt
to close an unopened file occurs, then the command method with the CLOSE option
returns a null string ("").
1
with the LINE option means the beginning of the stream.
command
method with the SEEK option returns the new position
in the stream if the read or write position is successfully located, or an
appropriate error message.stream~command("seek =2 read")
stream~command("seek +15 read")
stream~command("seek -7 write line")
fromend = 125
stream~command("seek <"fromend "read")
command method returns
specific information about a stream. Except for QUERY HANDLE and QUERY SEEK/POSITION,
the stream returns the query information even if the stream is
not open. The stream returns the null string for nonexistent streams.
stream~command("query datetime")
11-12-15 03:29:12
stream~command("query exists")
c:\data\file.txt
stream~command("query handle")
3stream~command("query position write")
247
stream~command("query size")
1305
PERSISTENT,
TRANSIENT, or
UNKNOWN.
stream~command("query timestamp")
2015-11-12 03:29:12