Traditional Visual Basic File Functions

Up to this point we have shown how to access the file system using classes provided by the .NET framework. However, there is another group of file-related functions that have been around since early versions of Visual Basic (and in some cases, the original BASIC language). If you work with a lot of existing Visual Basic code, you may run into these traditional file I/O functions. These functions are still supported via a compatibility namespace, although there are some changes to their syntax in Visual Basic .NET. We recommend you use the newer object-oriented classes whenever possible, but if you need to work with existing code you may find this section helpful.

Before using any of these functions, add ...

Get Special Edition Using Microsoft® Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.