C# Class WizardWrx.CSVFileInfo

Use these constants and service routines to simplify working with CSV type files.
Mostrar archivo Open project: txwizard/WizardWrx_NET_API

Public Methods

Method Description
LongRecordCount ( Array pastrWholeFile ) : long

Derive the record count from the length of an array of records loaded from a labeled CSV type file.

This method starts from the LongLength property of array pastrWholeFile. For the most part, this function is syntactic sugar. Given an array, pastrWholeFile, populated with strings that represent every record in a text file, this function returns the record count, adjusted for the label row that is assumed to be present. This assumption is justified by the fact that I almost always put a label row in my delimited ASCII text files, even if the intended use doesn't require one, because it makes diagnostic studies so much easier. In the long run, I prefer to have my programs discard the unneeded label row than have a carbon unit try to figure out what is supposed to be in each of its columns.

RecordCount ( Array pastrWholeFile ) : int

Derive the record count from the length of an array of records loaded from a labeled CSV type file.

This method starts from the Length property of array pastrWholeFile. For the most part, this function is syntactic sugar. Given an array, pastrWholeFile, populated with strings that represent every record in a text file, this function returns the record count, adjusted for the label row that is assumed to be present. This assumption is justified by the fact that I almost always put a label row in my delimited ASCII text files, even if the intended use doesn't require one, because it makes diagnostic studies so much easier. In the long run, I prefer to have my programs discard the unneeded label row than have a carbon unit try to figure out what is supposed to be in each of its columns.

Method Details

LongRecordCount() public static method

Derive the record count from the length of an array of records loaded from a labeled CSV type file.
This method starts from the LongLength property of array pastrWholeFile. For the most part, this function is syntactic sugar. Given an array, pastrWholeFile, populated with strings that represent every record in a text file, this function returns the record count, adjusted for the label row that is assumed to be present. This assumption is justified by the fact that I almost always put a label row in my delimited ASCII text files, even if the intended use doesn't require one, because it makes diagnostic studies so much easier. In the long run, I prefer to have my programs discard the unneeded label row than have a carbon unit try to figure out what is supposed to be in each of its columns.
public static LongRecordCount ( Array pastrWholeFile ) : long
pastrWholeFile Array /// Array populated with all records read from a text file /// /// Please see the Remarks section. ///
return long

RecordCount() public static method

Derive the record count from the length of an array of records loaded from a labeled CSV type file.
This method starts from the Length property of array pastrWholeFile. For the most part, this function is syntactic sugar. Given an array, pastrWholeFile, populated with strings that represent every record in a text file, this function returns the record count, adjusted for the label row that is assumed to be present. This assumption is justified by the fact that I almost always put a label row in my delimited ASCII text files, even if the intended use doesn't require one, because it makes diagnostic studies so much easier. In the long run, I prefer to have my programs discard the unneeded label row than have a carbon unit try to figure out what is supposed to be in each of its columns.
public static RecordCount ( Array pastrWholeFile ) : int
pastrWholeFile Array /// Array populated with all records read from a text file /// /// Please see the Remarks section. ///
return int