Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File.WriteAllLines(@"e:\resumo.txt", Directory.EnumerateFiles(@"E:\dados", "*.txt", SearchOption.AllDirectories)
- .SelectMany(File.ReadLines)
- .Select(s => s.Trim())
- .Where(s => !string.IsNullOrWhiteSpace(s))
- .Distinct()
- .OrderBy(x => x));
Add Comment
Please, Sign In to add comment