Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Hey, I'm trying to learn BASIC by writing a text-based game. Where I'm at now is trying to figure out how to do the inventory. Now, I was thinking that, whenever someone picks up, say, a gun, then it writes that to a file. How do I do that, though? I tried using the "open...append" and then "Write" commands to write to the file whenever someone picked it up, but then how do I get the program to go back and check that? I also tried to use the "open...binary" command to write to the file in binary, but that didn't work out well. Any ideas? Can I do an inventory without opening another file?
0 · ·