0

I have the following file.

ABD,2131
"AB, D", 383

I iterate the file and would like to split the values.

line.split(",");

what it gives:

ABD 2131  [2 values]
"AB  D" 383 [3 values]

what I would like to have

 ABD 2131 [2 values]
"AB, D" 383 [2 values]

So what I would like to do is to ignore comas surrounded by quotation.

Sudha Velan
  • 622
  • 8
  • 22
pshemek
  • 1,255
  • 4
  • 16
  • 33

0 Answers0