Login
Back to forumSee the full topicGo to last reply

Posted By

JamesC
on 2008-02-10
11:52:30
 Re: Writing CHR$(0)

The system has to be able to write and read CHR$(0), otherwise BASIC End-of-Line markers would be destroyed when a program was reloaded.

Are you using any custom load/save routines (including fastloaders)?

Does your program absolutely REQUIRE the CHR$(0)? Could you substitute another marker and then replace the marker upon reloading?
ie:
1300 OPEN 8,8,8,"somefile,u,r" : DO
1310 GET#8, A$, B$ : IF A$ = CHR$(255) ANB B$ = CHR$(1) THEN A$ = CHR$(0) : B$ = ""
1320 DA$ = DA$ + A$ + B$ : LOOP UNTIL ST = 64



Back to top


Copyright © Plus/4 World Team, 2001-2024