Skip to content

nanaksr/CSVParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSVParser

Delphi Simple CSV Parser. Load CSV Data and start processing it.

Usage :

Add csvparser.pas on delphi IDE library

uses CSVParser;

var ParseCsv: TCSVParser;
begin
  ParseCsv := TCSVParser.Create;
  try
    ParseCsv.SetDataFile := 'your\directory\example.csv';
    ParseCsv.Open;

    while not ParseCsv.Eof do
    begin
      Memo1.Lines.Add(ParseCsv.Fields[5]); //or ParseCsv.FieldByName['column_name']
      ParseCsv.Next;
    end;
    
  finally
    ParseCsv.Free;
  end;
end;

And Enjoy....

Available properties and methods :

  • property SetDataFile - Set csv directori file
  • property SetDelimiter - For ddefault ','
  • property Fields - result string from Index of column
  • property FieldByName - result string from Name of column and others read source

Semoga Bermanfaat 😚

Hope Useful 😚

About

Delphi Simple CSV Parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages