C#C
C#2y ago
10 replies
Piixel

✅ Read a xlsx file with c#

I am trying to read a xlsx file "Distance.xlsx" with an array of string, just like this code:
            string[] lines = File.ReadAllLines("Distances.xlsx");
            foreach (string line in lines)
            {
                Console.WriteLine(line);
            }

But it only return of bunch of random symbol, do u know how I shloud procede to read my file?
Was this page helpful?