So most people know that you can store information on your computer, things like documents, games, etc. When making a program you can tell the program to find certain files, use the information in those files, and copy, delete or move them. You can also have the program write or read text files and create keys to the registry system.
Most of those things are done through the System.IO Namespace.
The classes in this namespace for accessing a file system are:
Generally the difference between the ones with info in the name are that they have properties and instance methods. While the one without info has static methods. So the info ones are generally more efficient when doing multiple actions with the same file, because the without info class always does a security check, which isn’t always necessary, and most methods require the path to the file.
If you want to do multiple actions on multiple folders you should use the Directory or DirectoryInfo classes. Specifically the GetFiles or EnumerateFiles methods.
- The links should be to the articles on the Microsoft programming guide on the specific class or namespace.