VB File Input/Output Operations.


VB supports file I/O operations by allowing reading and writing data into files be it in your hard drive or even removable disks. They are very important functions particularly in applications that requires the storing of user preference, user settings such as video resolution, sound effects and configuration files. These are very useful as the user can load these preferred settings back whenever the application is executed.

The data file used can be of any file extension type and it can also be no extension at all. But typically, programmers will use the following extensions to symbolize the information stored.

".cfg" for configurations and settings
".dat" for storing plain data
".txt" for storing data as text (by default can be edited in notepad)

See these examples below by clicking the links on how you use program the file operations in your Visual Basic application development.

VB6 / Classic Examples:
Read Data From A Text File Using VB6/ Classic
Write Data Into A Text File Using VB6 / Classic

VB.NET Examples:
Read Data From A Text File using VB.NET
Write Data Into A Text File using VB.NET

0 comments