Home

Bytescout.XLS for .NET
Screenshots

Click to view sample
Click to view sample
Click to view sample
Click to view sample
Click to view sample
Click to view sample
Click to view sample Click to view sample

Bytescout.XLS library for .NET

Download Free Trial Buy Now More Information

How to read data from CSV files using Bytescout.XLS library in .NET application

The source code sample shows how to read data from CSV (comma separated values file) using Bytescout.XLS library.

Download example source code: bytescoutxls_read_csv.zip (4 KB)

Source CSV file:

source CSV file

using System;
using System.Collections.Generic;
using System.Text;
using Bytescout.XLS;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
// Create new XLSDocument
XLSDocument document = new XLSDocument("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();
}
}
}

Download example source code: bytescoutxls_read_csv.zip (4 KB)

Download Free Trial Buy Now More Information

Documentation online: view (separate window)

First steps tutorials:

Advanced Examples:
Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials |  

ByteScout, 2003-2008. All other company and product names may be trademarks of their respective companies. Privacy Statement