CSV Reports
Seperator Property (CsvReader)
Example 



KellermanSoftware.CsvReports Namespace > CsvReader Class : Seperator Property
The seperator for the columns. Default is a comma. It can be changed to a pipe, tab, etc.
Syntax
Public Property Seperator As Char
Dim instance As CsvReader
Dim value As Char
 
instance.Seperator = value
 
value = instance.Seperator
public char Seperator {get; set;}
public:
property char Seperator {
   char get();
   void set (    char value);
}
Example
CsvReader csvReader = new CsvReader(); //Trial Mode
//CsvReader csvReader = new CsvReader("place user name here", "place license key here"); //License Mode
 
//Change to be tab delimited
csvReader.Seperator = '\t';
 
string tabDelimitedString = "FirstName\tLastName\r\nJohn\tSmith";
 
List<Dictionary<string, string>> result = csvReader.CsvStringToDictionary(tabDelimitedString);
 
Console.WriteLine(result[0]["FirstName"]);
Dim csvReader As New CsvReader() 'Trial Mode
'CsvReader csvReader = new CsvReader("place user name here", "place license key here"); //License Mode
 
'Change to be tab delimited
csvReader.Seperator = ControlChars.Tab
 
Dim tabDelimitedString As String = "FirstName" & vbTab & "LastName" & vbCrLf & "John" & vbTab & "Smith"
 
Dim result As List(Of Dictionary(Of String, String)) = csvReader.CsvStringToDictionary(tabDelimitedString)
 
Console.WriteLine(result(0)("FirstName"))
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CsvReader Class
CsvReader Members