Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CONFUSING ARTICLE: Random Access Files - By Cruzan Wallis
#3
Hi Wildcard, The reason I read the article is that in all the years that I've been using Basic, I've never had the need to use Random files.

In a few applications that had large files where I needed direct access to records, I used Btrieve, a database handler. The rest of the time I use plain old sequential access, especially now when the speed of I/O is blazing fast as compared to machines of 10-15 years ago.

I know nothing about games, but for the example you mention, I would probably keep the player info in memory --- how many players can there be? Or, I would read/write the players file sequentially updating the required record(s). I would need to test this to see the impact on the time.

P.S. I still would like to see other examples using Random.
*****
Reply


Messages In This Thread
CONFUSING ARTICLE: Random Access Files - By Cruzan Wallis - by Moneo - 05-10-2004, 04:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)