Description
Reads CSV TXT files and creates a workbook.

Namespace: Docs.Excel
Assembly: Excel (in Excel.dll) Version: 3.1.0.0 (3.1)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static ExcelWorkbook ReadCSV(
	string fileName,
	char csvDelimeter,
	Encoding characterEncoding,
	ProgressEventHandler readingProgressHandler
)
Public Shared Function ReadCSV ( _
	fileName As String, _
	csvDelimeter As Char, _
	characterEncoding As Encoding, _
	readingProgressHandler As ProgressEventHandler _
) As ExcelWorkbook
public:
static ExcelWorkbook^ ReadCSV(
	String^ fileName, 
	wchar_t csvDelimeter, 
	Encoding^ characterEncoding, 
	ProgressEventHandler^ readingProgressHandler
)

Parameters

fileName
String
CSV or TXT file name.
csvDelimeter
Char
Char that separates cells.
characterEncoding
Encoding
Charset Excel file.
readingProgressHandler
ProgressEventHandler
The reference to handler of event ExcelWorkbook.ReadingProgress.

Return Value

The workbook as ExcelWorkbook object.

See Also