PROGRAMMING APPROACHES

Visual Basic includes a bewildering assortment of objects that you can use to manipulate drives, directories, and files. The stream classes described in Chapter 29 enable you to read and write files, but they don’t really capture any of the special structure of the filesystem.

A Visual Basic application has two main choices for working with the filesystem: Visual Basic methods and .NET Framework classes. This chapter describes these two approaches and the classes that they use. It finishes by describing some of the My namespace properties and methods that you can use to access filesystem tools more easily. For more information on the My namespace, see the section “My” in Chapter 28, “Configuration and Resources,” and Appendix S, “The My Namespace.”

Get Visual Basic 2012 Programmer's Reference 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.