dcsimg
October 15, 2018
Hot Topics:

Handling Files in Visual Basic

  • November 20, 2002
  • 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?

Advantages:

  • 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).

Disadvantages:

  • 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



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

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

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

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