Piixel
Piixel
CC#
Created by Piixel on 4/18/2024 in #help
✅ 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);
}
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?
11 replies