BBC BASIC v5.00 has some additional file-handling commands: BPUT #file%,s$ : REM Writes the string s$ to the file followed by a LF terminator BPUT #file%,s$; : REM Writes the string s$ to the file without a terminator s$ = GET$#file% : REM Reads from the file until LF, CR or NUL terminator s$ = GET$#file% BY n% : REM Reads exactly n% (max 255) bytes from the file s$ = GET$#file% TO c% : REM Reads from the file until the specified terminator CHR$(c%) So if you want to read from a file until a comma terminator you can do : s$ = GET$#file% TO 44 : REM Read from the file until a comma, CHR$(44)
@LearnAgon18 күн бұрын
Thank you very much Mr RTRussell!
@GeorgesChannel18 күн бұрын
Hello my friend, thank you for the shoutout and for the good words. I am very happy that i inspired you to convert this program. In Commodore world these are called sequential files and i generate them automatically (see tutorials below). Some tips: * The Commodore code should work, if you change it to BBC basic syntax (Open, Close, Draw and Locate) * You scale coordinate by multiplying them with a number (constant) * you flip by substracting from a number: in this case y from 200 (+4 resolution is 320x200). * You may run into the issue that the EOL of the seq.file is not the same as in BBC-Basic. (use Notepad++ to change it) I hope this helps. Otherwise i can help you converting. Here some tutorials how to make your own seq-files: - Tutorial | Blender 3.5 | SVG on BASIC Computers from the 80's: kzbin.info/www/bejne/q5TVoYmipMyMmZI - Naboo N1 Starfighter | 3D vs. SVG | Commodore Plus/4: kzbin.info/www/bejne/q5TVoYmipMyMmZI Have fun coding ...:)
@LearnAgon18 күн бұрын
My pleasure! Thank you so much for your help and support! This will take me a while to figure out and I will keep you posted!!