SERIAL DATA COMMUNICATION
If man receives a file, e.g. program over a serial port, this must be locked absolutely with CHR$ 26, there the Sharp CHR$ 26 as eof (end to OF file) label used. If no CHR$ 26 will emfangen, the transfer must be interrupted by means of (BREAK). The last received data, which always are in the receive buffer, are lost then. This is not located in my operating instruction.
NO LINPUT
" functions, " as data disconnecting switch with sequential files. That can be problematic if one text files store, which contain ", ". If the file is read by means of INPUT #, those disappears to comma ' s. seeing you volgendes example:
In order to avoid this, one can instead of ", " (CHR$ 44) CHR$ (44+128) to use. This can by KBII, SHIFT, J, be attained KBII. In reverse in my text processing program, I have a small routine, which all CHR$ 44 with CHR$ 172 replaces before is gepeichert, and with to read. If I load the file by means of LOAD *, same amplifier finally no CHR$ 44 / CHR$ 172 transformation takes place, but nothing makes. Bit 7 does not consider my wheel printers (bread ago HR15), and for it it is all the same no matter whether one writes CHR$ 44 or CHR$ 172 to him. (if one its files ausschlieslich by means of LOAD * loads, does not give it the problem not, because the Sharp for LOAD understands * only CHR$ 13 as data disconnecting switch).
If with the Sharp a LINPUT instruction were available, last it no more problem, because with LINPUT only CHRS 13 is to be understood as data disconnecting switches.
OPEN " X:probe.txt ", FOR OUTPUT
AS #1
PRINT # 1, " CIAO!"
PRINT #1,"PC-1600 MI PIACI, ANCHE
TI?"
CLOSE #1
DIM A$(2)*80
OPEN " X:PROBE.TXT " FOR INPUT
AS #1
INPUT # 1, A$l0)
INPUT # 1, as(1)
INPUT # 1, as(2)
CLOSE #1
PRINT A$(0)
CIAO!
PRINT A$(1)
PC-1600 MI PIACI
PRINT A$(2)
ANCHE TI?
Notice also into the above example that the four blanks before " CIAOI " ' disappeared. Blank at the start of a line is not considered by INPUT #. Henn one the first blanks, CHR$ (32) replaced by CNR$(32+128) = CHR$(160), or KBII A, KBII, come along also the starting blanks. This is also no problem with LOAD *.
It is probably admits that as response INPUT a question none " ' s to be input can. One can use densselben trick here " is CHR$ 34, and one can use CHR$ 162. CHR$ 162 can by KBII, F, be attained KBII.
If one possesses printers with IBM compatible character set, can specified the above cheat not to be used, since bit 7 is bernecksichtigt here.