I was wondering if anyone knows a good way of writing this. I have a list of key value pairs. The key is a simple string and the value is a list of strings. I\'m trying to write
Try this:
File.WriteAllLines(@"C:\Users\S\Downloads\output.txt", from kvp in input select kvp.Key + ": " + string.Join(", ", kvp.Value));