Guest User

Untitled

a guest
Mar 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. File.WriteAllLines(@"e:\resumo.txt", Directory.EnumerateFiles(@"E:\dados", "*.txt", SearchOption.AllDirectories)
  2. .SelectMany(File.ReadLines)
  3. .Select(s => s.Trim())
  4. .Where(s => !string.IsNullOrWhiteSpace(s))
  5. .Distinct()
  6. .OrderBy(x => x));
Add Comment
Please, Sign In to add comment