# 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.
```
delphi-使用delphi开发的CSV解释器-parser.zip
需积分: 1 94 浏览量
2024-03-09
18:23:50
上传
评论
收藏 3KB ZIP 举报
DdddJMs__135
- 粉丝: 1039
- 资源: 280
最新资源
- python-leetcode面试题解之第162题寻找峰值-题解.zip
- python-leetcode面试题解之第161题相隔为1的编辑距离-题解.zip
- python-leetcode面试题解之第160题相交链表-题解.zip
- python-leetcode面试题解之第159题至少包含两个不同字符的最长子串-题解.zip
- python-leetcode面试题解之第158题用Read4读取N个字符II-多次调用-题解.zip
- Python 程序语言设计模式思路-行为型模式:策略模式:将算法封装成独立的类,并使它们可以互相替换及支付模式数据压缩
- main.py
- Last Loaded Test.DBK
- Screenshot_20240520_163011.jpg
- ubuntu-python3-whisper-tornado docker镜像 Dockerfile
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈