The BHT stores incoming data--a response
from the printer, for example--in the data receive buffer. The
user application program must first read this data from the receive
buffer before processing it.
Use the LOC function to check the number of bytes in the receive
buffer and then supply that number to the INPUT$ function.
The INPUT$ function reads the specified number of bytes from
the receive buffer data, waiting if necessary until len bytes
are available. Be aware that it waits forever if data dropout
means that the BHT receives fewer bytes than expected.
Set fileno to the value specified when opening the communications
device file.
|