Ok, so I know that questions LIKE this have been asked a lot on here, but I can\'t seem to make solutions work.
I am trying to take a string from a file and find the longest
var fileText = File.ReadAllText(@"C:\Users\RichardsPC\Documents\TestText.txt");
var words = fileText.Split(' ')
var finalValue = fileText.OrderByDescending(n=> n.Length).First();
Console.WriteLine("Longest word: " + finalValue");