using System.Collections.Generic;
public static void Main()
var path = @"C:\Users\Arturo\Desktop\Folders\Photos\txt.txt";
var wordNum = new List<string>(File.ReadAllText(path).Split(' '));
Console.WriteLine(wordNum.Count());
foreach (var word in wordNum)
if (word.Length > wordLenght)
Console.WriteLine(longestWord);