Here are some code samples for using the OpenExcelSdk library to read and write Excel files in C#. These examples demonstrate how to create a new Excel file, add data to it, and read data from an existing Excel file.
Source code repository: https://github.com/Pierlam/OpenExcelSdk
Nuget: https://www.nuget.org/packages/OpenExcelSdk
// Display some cell values, and the type of the cell value
DisplayValues.Run();
// Display cell values row by row, and the type of the cell value
DisplayValueRowByRow.Run();