Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

CommonEngine.CsvToDataTable Method (String, String, Char, Boolean)

Reads a Csv File and return their contents as DataTable

[Visual Basic]
Overloads Public Shared Function CsvToDataTable( _
   ByVal filename As String, _
   ByVal classname As String, _
   ByVal delimiter As Char, _
   ByVal hasHeader As Boolean _
) As DataTable
[C#]
public static DataTable CsvToDataTable(
   string filename,
   string classname,
   char delimiter,
   bool hasHeader
);

Parameters

filename
The file to read.
classname
The name of the record class
delimiter
The delimiter for each field
hasHeader
Indicates if the file contains a header with the field names.

Return Value

The contents of the file as a DataTable

See Also

CommonEngine Class | FileHelpers Namespace | CommonEngine.CsvToDataTable Overload List


Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox