CSVDataTable.FromFile Method

/// Read in a single CSV file into a datatable in memory ///
Public Shared Function FromFile( _ 
ByVal filename As String, _ 
Optional ByVal settings As CSVSettings = null _ 
) As DataTable
This language is not supported or no code example is available.
public static DataTable FromFile( 
string filename
CSVSettings settings = null 
)
This language is not supported or no code example is available.
public:  
static DataTable^ FromFile( 
String^ filename
CSVSettings^ settings 
)
This language is not supported or no code example is available.
public static function FromFile( 
filename : String
settings : CSVSettings 
) : DataTable;
This language is not supported or no code example is available.

Parameters

filename
string

settings
CSVSettings

The CSV settings to use when exporting this array (Default: CSV)

Return Value

DataTable

An data table of strings that were retrieved from the CSV file.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition