-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement NOTE and POINT statements. #79
Comments
For sequential (I would still like to understand binary files) files - this is what I am doing currently: Write then read and print line by line
Write then read into a buffer and print buffer
|
Hi! Yes, currently FastBasic lacks the NOTE and POINT Atari statements. You can emulate them with XIO currently:
You must be careful when using XIO like that, do not overwrite the value of AUX1 (the "4" above), as it will mess up with the DOS calls if it is different than the one used in the OPEN call. Have Fun! |
Excellent - I'll make sure to wrap this up with lots of error and bounds checking ;) |
Hi, I am wondering if there is an example of the following Atari BASIC in FastBASIC?
10 OPEN #1,8,0,"D:MYFILE.DAT":NOTE #1,MSECT,MBYTE
20 FOR Y=1 TO 10:? #1;B$:NEXT Y:CLOSE #1
30 OPEN #1,8,0,"D:MYFILE.CFG"
40 ? #1;MSECT;CR$;MBYTE
"NOTE" is what I am missing - and maybe there is a better way to handle file IO
Basically the thing I want to solve is creating a datafile, and then tracking the BYTE and SECTOR for indexed retrieval.
Use cases:
Mailing list Database
User data (Passwords and email addresses)
Message Database (For a BBS)
The text was updated successfully, but these errors were encountered: