\Microsoft\VisualBasic\Data\csvExtensions

The csv file I/O extensions

Summary

Methods
Properties
Constants
SaveTo()
Load()
LoadTable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
ParseTsvRow()
No private properties found
N/A

Methods

SaveTo()

SaveTo(  $array,   $path,   $project = null,   $encoding = "utf8") : boolean

Save array collection as a csv file.

Parameters

$array
$path
$project
$encoding

Returns

boolean —

True for file save success, and false not.

Load()

Load(string  $path,   $tsv = false,   $maxLen = 2048, string  $encoding = "utf8") : array

Parse target csv file to an object array.

Parameters

string $path

The *.csv file path.

$tsv
$maxLen
string $encoding

The file content encoding.

Returns

array —

An array of object that read from the given csv file.

LoadTable()

LoadTable(  $path) 

Load tsv table

Parameters

$path

ParseTsvRow()

ParseTsvRow(  $line) 

Parameters

$line