Posted By
siz on 2008-02-09 15:30:29
| Re: Writing CHR$(0)
Sorry. So my memory does not serve me well. Only the BASIC INPUT# and GET# has problems with CHR$(0): they sense it as an EOF. I tested with this simple program:
10 A$="ABC"+CHR$(0)+"DEF" 20 PRINTLEN(A$), A$ 30 OPEN1,8,1,"TEST"RINT#1,A$:CLOSE1 40 OPEN1,8,0,"TEST":INPUT#1,B$:CLOSE1 50 PRINTLEN(B$), B$ READY. RUN 7 ABCDEF 3 ABC READY.
|