CSVReader.ChopFile Method

/// Take a CSV file and chop it into multiple chunks of a specified maximum size. ///
Public Shared Function ChopFile( _ 
ByVal filename As String, _ 
ByVal out_folder As String, _ 
ByVal maxLinesPerFile As Integer, _ 
Optional ByVal settings As CSVSettings = null _ 
) As Integer
This language is not supported or no code example is available.
public static int ChopFile( 
string filename, 
string out_folder, 
int maxLinesPerFile, 
CSVSettings settings = null 
)
This language is not supported or no code example is available.
public:  
static int ChopFile( 
String^ filename, 
String^ out_folder, 
int maxLinesPerFile, 
CSVSettings^ settings 
)
This language is not supported or no code example is available.
public static function ChopFile( 
filename : String, 
out_folder : String, 
maxLinesPerFile : int, 
settings : CSVSettings 
) : int;
This language is not supported or no code example is available.

Parameters

filename
string

The input filename to chop

out_folder
string

The folder where the chopped CSV will be saved

maxLinesPerFile
int

The maximum number of lines to put into each file

settings
CSVSettings

The CSV settings to use when chopping this file into chunks (Default: CSV)

Return Value

int

Number of files chopped

.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