Qbasicnews.com

Full Version: File Types
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What type of files can be used in freebasic?? Can direct or sort files be used??

Anonymous

what?
are the files indexed, or can they be direct (like in some forms of business basic). A direct file has a key and not an index number. The key can be just about anything, name, id number..ect. If you want a particular record, you read that file with that particular key.
You can pretty much use any file if you know how to read and interpret the format.
I think what you're looking for is either database support, or RANDOM file access. FB has RANDOM support built-in and I believe there is example code for using databases in the example code but I'm not sure.
yes random file access.

Anonymous

get familiar with QB. then read freebasic's wiki here: http://www.freebasic.net/wiki

FB has almost every command QB did, excpet 16-bit specific stuff, or 'archaic' commands.