gpt4 book ai didi

android - java.io.IOException : Un-terminated quoted field at end of CSV line 异常

转载 作者:太空狗 更新时间:2023-10-29 14:32:44 25 4
gpt4 key购买 nike

我有一个 CSV 文件(用德语编写),我正在用我的代码解析它。

CSVParser newLineParser = new CSVParser('\n');

try {

String[] points = newLineParser.parseLine(csv);
CSVParser commaParser = new CSVParser();
int pointsLength = points.length;

for (int i = 1; i < pointsLength; i++) {

String[] pointComponents = commaParser.parseLine(points[i]);
}

}
catch (Exception e) {
Log.e("Exception", e.getMessage());
}

我在 parseLine 方法中收到如下错误:

java.io.IOException: Un-terminated quoted field at end of CSV line

这个错误的原因可能是什么?

最佳答案

我从中得到的是,在您的 CSV 文件中,报价已打开但未关闭。

关于android - java.io.IOException : Un-terminated quoted field at end of CSV line 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4967155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com