CSVDataTable.WriteToFile Method

/// Write a data table to disk at the designated file name in CSV format ///
<Extension()> _ 
Public Shared Sub WriteToFile( _ 
ByVal dt As DataTable, _ 
ByVal filename As String, _ 
Optional ByVal settings As CSVSettings = null _ 
)
This language is not supported or no code example is available.
public static void WriteToFile( 
this DataTable dt
string filename
CSVSettings settings = null 
)
This language is not supported or no code example is available.
[Extension()] 
public:  
static void WriteToFile( 
DataTable^ dt
String^ filename
CSVSettings^ settings 
)
This language is not supported or no code example is available.
public  
Extension() 
static function WriteToFile( 
dt : DataTable
filename : String
settings : CSVSettings 
);
This language is not supported or no code example is available.

Parameters

dt
DataTable

filename
string

settings
CSVSettings

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

.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