Zeros are remove from prefix of first column

2 views
Skip to first unread message

Yasir

unread,
Sep 15, 2008, 4:16:07 AM9/15/08
to CSVChat
Hi,


I am reading a CSV CDR file. First column has A party numbers. But
when i read first coulmn using get method; it removes zeros (0) from
prefix of number.
For example.. If first coulmn has value 00966541001391. then method
csvReader.get(headerName[0]); returns 966541001391

Please note that their is no any zero in beginning.



CsvReader csvReader = new CsvReader(fileName,delimiter);


csvReader.get(headerName[0]);

Please help me in thisissue.

Thanks,
Yasir

shriop

unread,
Sep 15, 2008, 12:09:09 PM9/15/08
to CSVChat
Please double check your file because the parser will not remove
leading zeros. That's one of the main features of the library is that
it will not modify the string values in the file.

Bruce Dunwiddie
Reply all
Reply to author
Forward
0 new messages