March 1, 2021
Hot Topics:

Handling Files in Visual Basic

  • By Alex Allan
  • Send Email »
  • More Articles »

So we've seen the Random file access mode in use. And it's pretty darn cool.

But what are the advantages when compared with the sequential Input/Output/Append modes?


  • It's easy to change the data already saved in records - you just write a Put command and it will overwrite the old data.
  • You don't need to open and close files to change how you read the files (i.e. random does both input and output).


  • If you want to do anything except simple retrieval of settings or basic data storage, you will need to do a lot of calculations which can be frustrating. Trust me.
  • You can't read the data into a text editor, though a simple record editor can be created with a moderate amount of coding

And now for something completely different; binary file mode...

Page 4 of 6

This article was originally published on November 20, 2002

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date