Java- CSV / Delete column in csv file

前端 未结 2 477
北海茫月
北海茫月 2021-01-27 00:45

I try to delete a column in csv file in Java.

for example, I have this csv file

ID   name1   name2   name3
1    hello   hell    hel
2    try     tr               


        
2条回答
  •  一个人的身影
    2021-01-27 00:57

    The only way to delete a column in a CSV file is to remove the header and the information of this column in the whole file, that is for each row of the file. Even if you use a third party library it will do this internally.

提交回复
热议问题