• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Parsing a file containing special characters  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can somebody tell me a way to parse a .csv file.
I am having an excel file(saved as a .csv file) with 8 columns and every column is having certain data.
I have written a code which parses this data and reads into a business object .
My problem is that whenever there is a text message which has the pattern like ", that is a double quote followed by a comma the code fails as my parsing mechanism recognizes this as the end of a token.I am using streamtokenizer class.
How can I take care of this..
Can somebody throw light on this issue.
Pl. rush your solution as it is urgent.Thanx in advance
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IBM RPL,
Please re-register with a valid name that adheres to the JavaRanch naming policy.
Thanks,
-Peter
 
IBM RPL
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to change my username..pl can u do it for me??
 
IBM RPL
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Trans,
I am unable to change my username from the system....
can u pl. help...
Thanks----IBM RPL
 
Peter Tran
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IBM RPL,
Just re-register with a new name. I'm not sure you can change your name once it's registered.
Thanks,
-Peter
[This message has been edited by Peter Tran (edited March 10, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!