EasyXLS

Import TXT file in .NET, Java and other programming languages

EasyXLS™ library allows you to import data fromTXT file format and specify the separators for data in rows and columns.

The data from the TXT file can be also read into various data structures like lists, datasets or resultsets.

EasyXLS also supports TXT files with specific character encoding.

EasyXLS can be successfully used inclusively to import large TXT files having big volume of data with fast importing time.

Import text file with specific separators

The below source code sample is a common code about how to import data from TXT file.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Import text file with encoding

EasyXLS allows you to import TXT files with specific encoding using ExcelDocument.easy_LoadTXTFile, ExcelDocument.easy_ReadTXTFile_AsDataSet or ExcelDocument.easy_ReadTXTFile_AsList methods.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Read text file into DataTable in C# and VB.NET

EasyXLS library can be used to import TXT file into DataTable. The DataTable can be the used as data source of a GridView, DataGridView, DataGrid or for any other purposes.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsDataSet method and then the DataTable can be obtained from the imported DataSet.

C#.NET
VB.NET

Read text file into GridView in C# and VB.NET from ASP.NET

EasyXLS library can be used to import TXT data into GridView from ASP.NET web applications.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsDataSet method and then the DataTable for the GridView can be obtained from the imported DataSet.

Read text file into DataGridView in C# and VB.NET

EasyXLS library can be used to import TXT data into DataGridView from windows applications and windows forms.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsDataSet method and then the DataTable for the DataGridView can be obtained from the imported DataSet.

Read text file into DataSet in C# and VB.NET

EasyXLS library can be used to import TXT file into DataSet from windows applications, ASP.NET pages or console applications.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsDataSet method.

C#.NET
VB.NET

Read text file into ResultSet in Java

EasyXLS library can be used to import TXT file into ResultSet from Java applications.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsResultSet method.

Java
Coldfusion
Python

Read text file into list

EasyXLS library can be used to import TXT file into lists of data.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsList method.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Read text file into DataGrid in C# and VB.NET

EasyXLS library can be used to import TXT data into DataGrid from windows applications and windows forms.

The data from the TXT file can be read using ExcelDocument.easy_ReadTXTFile_AsDataSet method and then the DataTable for the DataGrid can be obtained from the imported DataSet.

Import CSV files

EasyXLS allows you to import data from CSV files using specific methods.


Getting started with EasyXLS Excel library

To download the trial version of EasyXLS Excel Library, press the below button:

Download EasyXLS™ Excel Library for .NET and Java

If you already own a license key, you may login and download EasyXLS from your account.



Available for: Professional, Excel Reader

Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
.NET Excel Reader
.NET version to read and import Excel files
COM+ Excel Library
full COM+ version to import, export or convert Excel files
COM+ Excel Reader
COM+ version to read and import Excel files
-
Java
Java Excel Library
full Java version to import, export or convert Excel files
Java Excel Reader
Java version to read and import Excel files
Download EasyXLS™ Excel Library for .NET and Java

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2019
MS Excel 2021
Office 365
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT