Working with Directories and Files

The Mono framework provides a variety of classes for managing directories and files. To users familiar with Unix operating systems, this will look strange because there's no reason to deal with directories and files differently. However, in the case of practical work, this difference can make sense.

Let's get started and see which classes we can find in the Mono and, respectively, the .NET frameworks.

  • File: Contains basic methods for managing files.

  • Directory: Contains basic methods for managing directories.

  • Path: Supposed to manage paths. The main idea of this class is to have a mechanism that works fairly independently of the underlying operating system. That's essential because it helps you to write portable ...

Get Mono Kick Start 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.