Summary

The ability to handle common file I/O tasks is essential to all developers. The .NET Framework namespace, System.IO, exposes this functionality. By now, you should have a solid foothold in this namespace that will support you in your further explorations.

The following is a summary of some of the key points regarding common file I/O programming tasks:

  • DirectoryInfo and FileInfo classes contain specific instance methods related to a given directory or file. Whereas, the Directory and File classes pertain to static methods and are thus used in more generic cases.

  • Use the following four basic methods of the Directory class for manipulating directories: Create, CreateSubdirectory, Delete, MoveTo, and Refresh.

  • Use the GetFiles method of Directory ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.