ByteScout Spreadsheet SDK - C# - Read CSV File - ByteScout

ByteScout Spreadsheet SDK – C# – Read CSV File

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Read CSV File

How to read CSV file in C# using ByteScout Spreadsheet SDK

Write code in C# to read CSV file with this step-by-step tutorial

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#.

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.cs
      
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(); } } }

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Get ByteScout Spreadsheet SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next