string[] lines = File.ReadAllLines("Distances.xlsx"); foreach (string line in lines) { Console.WriteLine(line); }