File operations in .NET: Create, Read, Update, Delete, and Search

.NET has a good, high-level File API that abstracts away the complexity of file operations. You can create, read, update, delete, and search for files with a single method call. It’s flexible and provides multiple approaches, allowing you to pick the best tool for the job. For example, you can load an entire file all … Read more

C# – Find all empty folders

An empty folder: Has no files. Either has no folders, or has folders that are empty. In this article I’ll show code that finds empty folders based on this definition. Code that finds empty folders Given a root folder path, the following code recursively looks for empty folders and writes the empty folder path to … Read more