wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes Parsing a file containing special characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Parsing a file containing special characters" Watch "Parsing a file containing special characters" New topic
Author

Parsing a file containing special characters

IBM RPL
Greenhorn

Joined: Mar 09, 2001
Posts: 3
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
Peter Tran
Bartender

Joined: Jan 02, 2001
Posts: 783
IBM RPL,
Please re-register with a valid name that adheres to the JavaRanch naming policy.
Thanks,
-Peter
IBM RPL
Greenhorn

Joined: Mar 09, 2001
Posts: 3
I am unable to change my username..pl can u do it for me??
IBM RPL
Greenhorn

Joined: Mar 09, 2001
Posts: 3
Peter Trans,
I am unable to change my username from the system....
can u pl. help...
Thanks----IBM RPL
Peter Tran
Bartender

Joined: Jan 02, 2001
Posts: 783
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parsing a file containing special characters
 
Similar Threads
Getting Data in the form of CSV files
writing data to CSV file
generate zip file containing a csv file
Parsing a .csv file containing special characters
referencing csv/text file for Java EE web application