Learn how to read CSV file in C# with this source code sample. What is ByteScout Spreadsheet SDK? It is the SDK that can write and read, modify and calculate Excel and CSV spreadsheets. Most popular formulas are supported. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can help you to read CSV file in your C# application.
The SDK samples like this one below explain how to quickly make your application do read CSV file in C# with the help of ByteScout Spreadsheet SDK. Follow the instructions from the scratch to work and copy the C# code. Use of ByteScout Spreadsheet SDK in C# is also explained in the documentation included along with the product.
Free trial version of ByteScout Spreadsheet SDK is available for download from our website. Get it to try other source code samples for C#.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.Collections.Generic; using System.Text; using Bytescout.Spreadsheet; using System.IO; namespace HelloWorld { class Program { static void Main(string[] args) { // Create new Spreadsheet Spreadsheet document = new Spreadsheet(); document.LoadFromFile("Hello_world.csv"); // Get first worksheet Worksheet worksheet = document.Workbook.Worksheets[0]; // Read cell value Console.WriteLine("Cell (0,0) value: {0}", worksheet.Cell(0, 0).ValueAsString); // Write message Console.Write("Press any key to continue..."); // Wait user input Console.ReadKey(); } } }
60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page
Explore ByteScout Spreadsheet SDK Documentation
Explore Samples
Sign Up for ByteScout Spreadsheet SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page
Explore ByteScout Spreadsheet SDK Documentation
Explore Samples
Sign Up for ByteScout Spreadsheet SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: