Delphi DLL Requires Chilkat v9.5.0.89+
Delphi DLL
CSV - Convert Comma to Semicolon Separators
See more CSV Examples
Load a CSV using comma delimiters and convert to a CSV using semicolon delimiters.Chilkat Delphi DLL Downloads
var
success: Boolean;
csv: HCkCsv;
begin
success := False;
csv := CkCsv_Create();
success := CkCsv_LoadFile2(csv,'qa_data/csv/csv_wit_comma_separators.csv','utf-8');
if (success = False) then
begin
Memo1.Lines.Add(CkCsv__lastErrorText(csv));
Exit;
end;
// Note: Updating the Delimiter property will cause
// all already-existing rows in the CSV
// to be updated with the new delimiter.
CkCsv_putDelimiter(csv,';');
Memo1.Lines.Add(CkCsv__saveToString(csv));
CkCsv_Dispose(csv);