Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joaoduarte19/csvparser
CSV Parser for Delphi
https://github.com/joaoduarte19/csvparser
csv csv-parser delphi
Last synced: 22 days ago
JSON representation
CSV Parser for Delphi
- Host: GitHub
- URL: https://github.com/joaoduarte19/csvparser
- Owner: joaoduarte19
- License: apache-2.0
- Created: 2020-03-02T19:36:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-09T19:11:14.000Z (almost 5 years ago)
- Last Synced: 2024-10-31T10:28:45.631Z (2 months ago)
- Topics: csv, csv-parser, delphi
- Language: Pascal
- Size: 11.7 KB
- Stars: 15
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSV Parser
CSV Parser for Delphi## Samples
```delphi
uses
System.SysUtils,
CSVParser.Reader;var
LCSVReader: TCSVReader;
begin
try
LCSVReader := TCSVReader.Create;
try
LCSVReader.LoadFromFile('path_to_csv_file.csv');
while not LCSVReader.Eof do
try
// Get field by index
Writeln(LCSVReader.Field[0]);
// Get field by name
Writeln(LCSVReader.FieldByName['field_name']);
finally
LCSVReader.Next;
end;
finally
LCSVReader.Free;
end;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
```