且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用JAVA在CSV文件中合并列

更新时间:2023-10-05 15:06:40

while ((row = reader.readNext()) != null) 
{
    for (int i = 0; i < row.length; i++) 
    {
        // display CSV values


        System.out.print(row[i]);
        String com = row[i];

        out.write(com); 
    }
 System.out.println();
}

这仅在写入ove SV行之后才中断输出

this breaks the output only after ove SV line is writen