CHAPTER 9

image

Interacting with the File System

You can use LINQ as you would a scripting programming language to perform several types of file system analytics operations. For .NET developers, LINQ can be as useful as PowerShell—in fact, sometimes even better, because when using LINQ, developers can still leverage all the other benefits that the host language has to offer (C# in this case).

In this chapter, you will see recipes that illustrate how you can use LINQ to perform various file operations, including the following:

  • Comparing CSV files
  • Finding the total size of a set of files in a directory
  • Simulating some common LINUX commands
  • Finding duplicate ...

Get Thinking in LINQ: Harnessing the power of functional programing in .NET applications 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.